@unipin/angular-applet 21.0.1 → 21.1.2

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.
Files changed (63) hide show
  1. package/README.md +334 -37
  2. package/common/assets/styles/theme.css +3 -0
  3. package/fesm2022/unipin-angular-applet-accordion.mjs +30 -30
  4. package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -1
  5. package/fesm2022/unipin-angular-applet-alert-dialog.mjs +92 -93
  6. package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/unipin-angular-applet-alert.mjs +16 -16
  8. package/fesm2022/unipin-angular-applet-alert.mjs.map +1 -1
  9. package/fesm2022/unipin-angular-applet-approval.mjs +129 -0
  10. package/fesm2022/unipin-angular-applet-approval.mjs.map +1 -0
  11. package/fesm2022/unipin-angular-applet-auth.mjs +45 -26
  12. package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -1
  13. package/fesm2022/unipin-angular-applet-avatar.mjs +6 -6
  14. package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -1
  15. package/fesm2022/unipin-angular-applet-badge.mjs +6 -6
  16. package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -1
  17. package/fesm2022/unipin-angular-applet-buttons.mjs +13 -17
  18. package/fesm2022/unipin-angular-applet-buttons.mjs.map +1 -1
  19. package/fesm2022/unipin-angular-applet-calendar.mjs +25 -25
  20. package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -1
  21. package/fesm2022/unipin-angular-applet-collapsible.mjs +17 -17
  22. package/fesm2022/unipin-angular-applet-collapsible.mjs.map +1 -1
  23. package/fesm2022/unipin-angular-applet-common.mjs +60 -23
  24. package/fesm2022/unipin-angular-applet-common.mjs.map +1 -1
  25. package/fesm2022/unipin-angular-applet-containers.mjs +22 -22
  26. package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -1
  27. package/fesm2022/unipin-angular-applet-dialog.mjs +62 -73
  28. package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -1
  29. package/fesm2022/unipin-angular-applet-forms.mjs +394 -152
  30. package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -1
  31. package/fesm2022/unipin-angular-applet-froala.mjs +10 -12
  32. package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -1
  33. package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +5 -5
  34. package/fesm2022/unipin-angular-applet-infinite-scroll.mjs.map +1 -1
  35. package/fesm2022/unipin-angular-applet-json-viewer.mjs +8 -8
  36. package/fesm2022/unipin-angular-applet-json-viewer.mjs.map +1 -1
  37. package/fesm2022/unipin-angular-applet-kbd.mjs +32 -0
  38. package/fesm2022/unipin-angular-applet-kbd.mjs.map +1 -0
  39. package/fesm2022/unipin-angular-applet-loading-dialog.mjs +8 -8
  40. package/fesm2022/unipin-angular-applet-loading-dialog.mjs.map +1 -1
  41. package/fesm2022/unipin-angular-applet-markdown.mjs +19 -21
  42. package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -1
  43. package/fesm2022/unipin-angular-applet-popover.mjs +21 -25
  44. package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -1
  45. package/fesm2022/unipin-angular-applet-progress-bar.mjs +8 -8
  46. package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -1
  47. package/fesm2022/unipin-angular-applet-skeleton.mjs +5 -5
  48. package/fesm2022/unipin-angular-applet-skeleton.mjs.map +1 -1
  49. package/fesm2022/unipin-angular-applet-spinner.mjs +6 -6
  50. package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -1
  51. package/fesm2022/unipin-angular-applet-swipeable.mjs +26 -26
  52. package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -1
  53. package/fesm2022/unipin-angular-applet-tabs.mjs +22 -22
  54. package/fesm2022/unipin-angular-applet-tabs.mjs.map +1 -1
  55. package/fesm2022/unipin-angular-applet-tooltip.mjs +5 -5
  56. package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -1
  57. package/package.json +9 -1
  58. package/types/unipin-angular-applet-alert-dialog.d.ts +3 -1
  59. package/types/unipin-angular-applet-approval.d.ts +55 -0
  60. package/types/unipin-angular-applet-common.d.ts +12 -2
  61. package/types/unipin-angular-applet-dialog.d.ts +1 -2
  62. package/types/unipin-angular-applet-forms.d.ts +70 -2
  63. package/types/unipin-angular-applet-kbd.d.ts +11 -0
@@ -32,7 +32,7 @@ class UpFieldControl {
32
32
  }
33
33
  class UpFieldControlComponent {
34
34
  constructor() {
35
- this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
35
+ this.error = signal('', { ...(ngDevMode ? { debugName: "error" } : {}) });
36
36
  this.injector = inject(Injector);
37
37
  this.ngControl = this.injector.get(NgControl, null);
38
38
  this._parentForm = inject(NgForm, { optional: true });
@@ -62,30 +62,30 @@ class UpFieldControlComponent {
62
62
  this.error.set(newState);
63
63
  }
64
64
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFieldControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
66
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFieldControlComponent }); }
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpFieldControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
66
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpFieldControlComponent }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFieldControlComponent, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpFieldControlComponent, decorators: [{
69
69
  type: Injectable
70
70
  }] });
71
71
 
72
72
  class UpInputDirective extends UpFieldControlComponent {
73
73
  constructor() {
74
74
  super(...arguments);
75
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
75
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
76
76
  this._computedClass = computed(() => {
77
77
  return up('peer file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium file:h-7 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none', this.error() ? 'ring-destructive/20 dark:ring-destructive/40 border-destructive focus-visible:ring-destructive/50' : '', this.inlineClass());
78
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
78
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
79
79
  }
80
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpInputDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
81
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.0", type: UpInputDirective, isStandalone: true, selector: "[upInput]", inputs: { inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpInputDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
81
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.2", type: UpInputDirective, isStandalone: true, selector: "[upInput]", inputs: { inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [
82
82
  {
83
83
  provide: UpFieldControl,
84
84
  useExisting: forwardRef(() => UpInputDirective)
85
85
  }
86
86
  ], exportAs: ["upInput"], usesInheritance: true, ngImport: i0 }); }
87
87
  }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpInputDirective, decorators: [{
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpInputDirective, decorators: [{
89
89
  type: Directive,
90
90
  args: [{
91
91
  standalone: true,
@@ -108,7 +108,7 @@ class UpNumberDirective extends UpInputDirective {
108
108
  super();
109
109
  this.renderer = renderer;
110
110
  this.el = el;
111
- this.magnifyValue = input(1, ...(ngDevMode ? [{ debugName: "magnifyValue" }] : []));
111
+ this.magnifyValue = input(1, { ...(ngDevMode ? { debugName: "magnifyValue" } : {}) });
112
112
  this.maxDecimalDigits = computed(() => {
113
113
  if (!this.magnifyValue() ||
114
114
  this.magnifyValue() === 1) {
@@ -116,7 +116,7 @@ class UpNumberDirective extends UpInputDirective {
116
116
  }
117
117
  const floatPoint = Math.log10(this.magnifyValue());
118
118
  return floatPoint % 1 !== 0 ? 0 : floatPoint;
119
- }, ...(ngDevMode ? [{ debugName: "maxDecimalDigits" }] : []));
119
+ }, { ...(ngDevMode ? { debugName: "maxDecimalDigits" } : {}) });
120
120
  this.lastCaretPos = 0;
121
121
  this.lastRawValue = '';
122
122
  this.lastKey = null;
@@ -270,15 +270,15 @@ class UpNumberDirective extends UpInputDirective {
270
270
  decimal: decimalPart?.slice(0, this.maxDecimalDigits()),
271
271
  };
272
272
  }
273
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpNumberDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
274
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.0", type: UpNumberDirective, isStandalone: true, selector: "[upNumber]", inputs: { magnifyValue: { classPropertyName: "magnifyValue", publicName: "magnifyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "blur": "onBlur()", "input": "onInput($event)", "keydown": "onKeyDown($event)" }, properties: { "class": "_computedClass()" } }, providers: [
273
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpNumberDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
274
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.2", type: UpNumberDirective, isStandalone: true, selector: "[upNumber]", inputs: { magnifyValue: { classPropertyName: "magnifyValue", publicName: "magnifyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "blur": "onBlur()", "input": "onInput($event)", "keydown": "onKeyDown($event)" }, properties: { "class": "_computedClass()" } }, providers: [
275
275
  {
276
276
  provide: UpFieldControl,
277
277
  useExisting: forwardRef(() => UpNumberDirective),
278
278
  },
279
279
  ], exportAs: ["upNumber"], usesInheritance: true, ngImport: i0 }); }
280
280
  }
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpNumberDirective, decorators: [{
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpNumberDirective, decorators: [{
282
282
  type: Directive,
283
283
  args: [{
284
284
  standalone: true,
@@ -308,20 +308,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
308
308
  class UpCheckboxDirective extends UpFieldControlComponent {
309
309
  constructor() {
310
310
  super(...arguments);
311
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
311
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
312
312
  this._computedClass = computed(() => {
313
313
  return up('peer dark:bg-input/30 border-input size-5 min-w-0 rounded-md border bg-transparent shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-border/40 relative cursor-pointer', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none', 'appearance-none checked:border-primary checked:bg-primary', 'checked:after:content-[\'\'] checked:after:absolute checked:after:border-white checked:after:border-b-2 checked:after:border-r-2 checked:after:w-1.5 checked:after:h-2.5 checked:after:rounded-br-xs checked:after:rotate-45 checked:after:left-1.5 checked:after:top-0.75', this.error() ? 'ring-destructive/20 dark:ring-destructive/40 border-destructive focus-visible:ring-destructive/50' : '', this.inlineClass());
314
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
314
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
315
315
  }
316
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCheckboxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
317
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.0", type: UpCheckboxDirective, isStandalone: true, selector: "[upCheckbox]", inputs: { inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "checkbox" }, properties: { "class": "_computedClass()" } }, providers: [
316
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCheckboxDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
317
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.2", type: UpCheckboxDirective, isStandalone: true, selector: "[upCheckbox]", inputs: { inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "checkbox" }, properties: { "class": "_computedClass()" } }, providers: [
318
318
  {
319
319
  provide: UpFieldControl,
320
320
  useExisting: forwardRef(() => UpCheckboxDirective)
321
321
  }
322
322
  ], exportAs: ["upCheckbox"], usesInheritance: true, ngImport: i0 }); }
323
323
  }
324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCheckboxDirective, decorators: [{
324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCheckboxDirective, decorators: [{
325
325
  type: Directive,
326
326
  args: [{
327
327
  standalone: true,
@@ -343,14 +343,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
343
343
  class UpSwitchComponent extends UpFieldControlComponent {
344
344
  constructor() {
345
345
  super();
346
- this.checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
347
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
348
- this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{
349
- transform: booleanAttribute
350
- }]));
351
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{
352
- transform: booleanAttribute
353
- }]));
346
+ this.checked = model(false, { ...(ngDevMode ? { debugName: "checked" } : {}) });
347
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
348
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: booleanAttribute });
349
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
354
350
  this.isTouched = false;
355
351
  this._computedClass = computed(() => {
356
352
  return up(`
@@ -363,7 +359,7 @@ class UpSwitchComponent extends UpFieldControlComponent {
363
359
  peer-checked:after:translate-x-[15px]
364
360
  peer-focus-visible:ring-2 peer-focus-visible:ring-primary peer-focus-visible:ring-offset-2
365
361
  `, this.inlineClass());
366
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
362
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
367
363
  this._onChange = (_val) => { };
368
364
  this._onTouched = () => { };
369
365
  if (this.ngControl !== null) {
@@ -393,8 +389,8 @@ class UpSwitchComponent extends UpFieldControlComponent {
393
389
  this._onChange(this.checked());
394
390
  this._onTouched();
395
391
  }
396
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
397
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: UpSwitchComponent, isStandalone: true, selector: "up-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, host: { classAttribute: "inline-flex items-center cursor-pointer" }, providers: [
392
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
393
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpSwitchComponent, isStandalone: true, selector: "up-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, host: { classAttribute: "inline-flex items-center cursor-pointer" }, providers: [
398
394
  {
399
395
  provide: UpFieldControl,
400
396
  useExisting: forwardRef(() => UpSwitchComponent),
@@ -416,7 +412,7 @@ class UpSwitchComponent extends UpFieldControlComponent {
416
412
  </span>
417
413
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
418
414
  }
419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSwitchComponent, decorators: [{
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSwitchComponent, decorators: [{
420
416
  type: Component,
421
417
  args: [{
422
418
  standalone: true,
@@ -453,19 +449,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
453
449
  class UpPasswordComponent extends UpFieldControlComponent {
454
450
  constructor() {
455
451
  super();
456
- this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
457
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
458
- this.autocomplete = input('off', ...(ngDevMode ? [{ debugName: "autocomplete" }] : []));
459
- this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{
460
- transform: booleanAttribute
461
- }]));
462
- this.disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
463
- this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
464
- this.type = signal('password', ...(ngDevMode ? [{ debugName: "type" }] : []));
452
+ this.placeholder = input(undefined, { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
453
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
454
+ this.autocomplete = input('off', { ...(ngDevMode ? { debugName: "autocomplete" } : {}) });
455
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: booleanAttribute });
456
+ this.disabled = model(false, { ...(ngDevMode ? { debugName: "disabled" } : {}) });
457
+ this.value = signal('', { ...(ngDevMode ? { debugName: "value" } : {}) });
458
+ this.type = signal('password', { ...(ngDevMode ? { debugName: "type" } : {}) });
465
459
  this.isTouched = false;
466
460
  this._computedClass = computed(() => {
467
461
  return up('pr-10 peer', this.inlineClass());
468
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
462
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
469
463
  /**
470
464
  * Callback function to handle value changes in the password input.
471
465
  * @type {(_val: any) => void}
@@ -542,8 +536,8 @@ class UpPasswordComponent extends UpFieldControlComponent {
542
536
  this.value.set(value);
543
537
  this._onChange(this.value());
544
538
  }
545
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
546
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: UpPasswordComponent, isStandalone: true, selector: "up-password", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange" }, host: { classAttribute: "block relative" }, providers: [
539
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
540
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpPasswordComponent, isStandalone: true, selector: "up-password", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange" }, host: { classAttribute: "block relative" }, providers: [
547
541
  {
548
542
  provide: UpFieldControl,
549
543
  useExisting: forwardRef(() => UpPasswordComponent)
@@ -574,7 +568,7 @@ class UpPasswordComponent extends UpFieldControlComponent {
574
568
  />
575
569
  `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: UpInputDirective, selector: "[upInput]", inputs: ["class"], exportAs: ["upInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
576
570
  }
577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpPasswordComponent, decorators: [{
571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpPasswordComponent, decorators: [{
578
572
  type: Component,
579
573
  args: [{
580
574
  standalone: true,
@@ -624,27 +618,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
624
618
  class UpSelectComponent extends UpFieldControlComponent {
625
619
  constructor() {
626
620
  super();
627
- this.items = input.required(...(ngDevMode ? [{ debugName: "items" }] : []));
628
- this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
629
- this.appendTo = input('', ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
630
- this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
631
- this.bindLabel = input('label', ...(ngDevMode ? [{ debugName: "bindLabel" }] : []));
632
- this.bindValue = input('value', ...(ngDevMode ? [{ debugName: "bindValue" }] : []));
633
- this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
634
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
635
- this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
636
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
637
- this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
638
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
639
- this.clearable = input(true, ...(ngDevMode ? [{ debugName: "clearable" }] : []));
640
- this.addTag = input(false, ...(ngDevMode ? [{ debugName: "addTag", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
641
- this.searchable = input(false, ...(ngDevMode ? [{ debugName: "searchable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
642
- this.virtualScroll = input(false, ...(ngDevMode ? [{ debugName: "virtualScroll", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
621
+ this.items = input.required({ ...(ngDevMode ? { debugName: "items" } : {}) });
622
+ this.label = input('', { ...(ngDevMode ? { debugName: "label" } : {}) });
623
+ this.appendTo = input('', { ...(ngDevMode ? { debugName: "appendTo" } : {}) });
624
+ this.placeholder = input('', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
625
+ this.bindLabel = input('label', { ...(ngDevMode ? { debugName: "bindLabel" } : {}) });
626
+ this.bindValue = input('value', { ...(ngDevMode ? { debugName: "bindValue" } : {}) });
627
+ this.value = model(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
628
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
629
+ this.loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : {}) });
630
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}) });
631
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}) });
632
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}) });
633
+ this.clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : {}) });
634
+ this.addTag = input(false, { ...(ngDevMode ? { debugName: "addTag" } : {}), transform: booleanAttribute });
635
+ this.searchable = input(false, { ...(ngDevMode ? { debugName: "searchable" } : {}), transform: booleanAttribute });
636
+ this.virtualScroll = input(false, { ...(ngDevMode ? { debugName: "virtualScroll" } : {}), transform: booleanAttribute });
643
637
  this.changed = output();
644
- this.control = contentChild(UpFieldControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
638
+ this.control = contentChild(UpFieldControl, { ...(ngDevMode ? { debugName: "control" } : {}) });
645
639
  this._computedClass = computed(() => {
646
640
  return up('w-full min-w-0 h-9', 'data-[disabled=true]:[&>.ng-select-container]:cursor-not-allowed! data-[disabled=true]:[&>.ng-select-container]:opacity-50! data-[disabled=true]:[&>.ng-select-container]:bg-transparent!', '[&>.ng-select-container]:border! [&>.ng-select-container]:border-input! [&>.ng-select-container]:rounded-md! [&>.ng-select-container]:cursor-pointer! [&>.ng-select-container]:shadow-xs! [&>.ng-select-container]:items-center!', '[&>.ng-select-container>.ng-value-container>.ng-placeholder]:text-base! md:[&>.ng-select-container>.ng-value-container>.ng-placeholder]:text-sm!', '[&>.ng-select-container>.ng-value-container>.ng-value]:text-base! md:[&>.ng-select-container>.ng-value-container>.ng-value]:text-sm! [&>.ng-select-container>.ng-value-container>.ng-value]:text-black!', '[&.ng-select-focused>.ng-select-container]:border-ring! [&.ng-select-focused>.ng-select-container]:ring-ring/50! [&.ng-select-focused>.ng-select-container]:ring-[3px]!', this.inlineClass());
647
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
641
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
648
642
  this.isTouched = false;
649
643
  this._onTouched = () => { };
650
644
  this._onChange = (_val) => { };
@@ -707,8 +701,8 @@ class UpSelectComponent extends UpFieldControlComponent {
707
701
  this.changed.emit(this.value());
708
702
  }
709
703
  }
710
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
711
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.0", type: UpSelectComponent, isStandalone: true, selector: "up-select", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, bindLabel: { classPropertyName: "bindLabel", publicName: "bindLabel", isSignal: true, isRequired: false, transformFunction: null }, bindValue: { classPropertyName: "bindValue", publicName: "bindValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, addTag: { classPropertyName: "addTag", publicName: "addTag", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block relative" }, providers: [
704
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
705
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.2", type: UpSelectComponent, isStandalone: true, selector: "up-select", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, bindLabel: { classPropertyName: "bindLabel", publicName: "bindLabel", isSignal: true, isRequired: false, transformFunction: null }, bindValue: { classPropertyName: "bindValue", publicName: "bindValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, addTag: { classPropertyName: "addTag", publicName: "addTag", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block relative" }, providers: [
712
706
  {
713
707
  provide: UpFieldControl,
714
708
  useExisting: forwardRef(() => UpSelectComponent)
@@ -730,12 +724,13 @@ class UpSelectComponent extends UpFieldControlComponent {
730
724
  [placeholder]="placeholder()"
731
725
  [virtualScroll]="virtualScroll()"
732
726
  [attr.data-disabled]="disabled()"
727
+ [ngModelOptions]="{ standalone: true }"
733
728
  (blur)="touch()"
734
729
  (ngModelChange)="change($event)"
735
730
  />
736
731
  `, isInline: true, styles: [".ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background-color:var(--accent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right-color:color-mix(in oklab,var(--primary) 50%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left:hover{background-color:color-mix(in oklab,var(--primary) 40%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%!important;padding-bottom:0!important;transform:translateY(-50%)!important}.ng-select .ng-select-container{transition:all .2s ease}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:.75rem}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:var(--muted-foreground)}.ng-select .ng-select-container .ng-arrow-wrapper{padding-right:.75rem}.ng-select .ng-select-container .ng-clear-wrapper{margin-right:.25rem;transition:color .2s ease}.ng-select .ng-select-container .ng-clear-wrapper:hover .ng-clear{color:var(--destructive)}.ng-dropdown-panel{overflow:hidden;margin-top:.25rem!important;border-color:var(--border)!important;border-radius:calc(var(--radius) - 2px)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.ng-dropdown-panel .ng-option-label{color:#000;font-size:1rem}@media screen and (min-width:48rem){.ng-dropdown-panel .ng-option-label{font-size:.875rem}}.ng-dropdown-panel .ng-option:hover,.ng-dropdown-panel .ng-option-marked{background-color:var(--accent)!important}.ng-dropdown-panel .ng-option-selected{color:#000!important;background-color:color-mix(in oklab,var(--primary) 15%,transparent)!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "dropdownPosition", "appendTo", "outsideClickEvent", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "tabFocusOnClearButton", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "deselectOnClick", "clearSearchOnAdd", "compareWith", "keyDownFn", "bindLabel", "bindValue", "appearance", "isOpen", "items"], outputs: ["bindLabelChange", "bindValueChange", "appearanceChange", "isOpenChange", "itemsChange", "blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"], exportAs: ["ngSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
737
732
  }
738
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSelectComponent, decorators: [{
733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSelectComponent, decorators: [{
739
734
  type: Component,
740
735
  args: [{ standalone: true, selector: 'up-select', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
741
736
  class: 'block relative',
@@ -764,6 +759,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
764
759
  [placeholder]="placeholder()"
765
760
  [virtualScroll]="virtualScroll()"
766
761
  [attr.data-disabled]="disabled()"
762
+ [ngModelOptions]="{ standalone: true }"
767
763
  (blur)="touch()"
768
764
  (ngModelChange)="change($event)"
769
765
  />
@@ -774,16 +770,16 @@ class UpCountrySelectComponent extends UpFieldControlComponent {
774
770
  constructor(service) {
775
771
  super();
776
772
  this.service = service;
777
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
778
- this.clearable = input(true, ...(ngDevMode ? [{ debugName: "clearable" }] : []));
779
- this.placeholder = input('Select country', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
780
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
781
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
782
- this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
773
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}) });
774
+ this.clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : {}) });
775
+ this.placeholder = input('Select country', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
776
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
777
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
778
+ this.value = model(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
783
779
  this.changed = output();
784
- this.countries = signal([], ...(ngDevMode ? [{ debugName: "countries" }] : []));
785
- this.isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
786
- this._disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
780
+ this.countries = signal([], { ...(ngDevMode ? { debugName: "countries" } : {}) });
781
+ this.isLoading = signal(true, { ...(ngDevMode ? { debugName: "isLoading" } : {}) });
782
+ this._disabled = signal(false, { ...(ngDevMode ? { debugName: "_disabled" } : {}) });
787
783
  this.isTouched = false;
788
784
  this._onTouched = () => { };
789
785
  this._onChange = (_val) => { };
@@ -835,8 +831,8 @@ class UpCountrySelectComponent extends UpFieldControlComponent {
835
831
  this.changed.emit(this.countries().find(c => c.code === value));
836
832
  }
837
833
  }
838
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCountrySelectComponent, deps: [{ token: i1$1.CountryService }], target: i0.ɵɵFactoryTarget.Component }); }
839
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: UpCountrySelectComponent, isStandalone: true, selector: "up-country-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block" }, providers: [
834
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCountrySelectComponent, deps: [{ token: i1$1.CountryService }], target: i0.ɵɵFactoryTarget.Component }); }
835
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpCountrySelectComponent, isStandalone: true, selector: "up-country-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block" }, providers: [
840
836
  {
841
837
  provide: UpFieldControl,
842
838
  useExisting: forwardRef(() => UpCountrySelectComponent),
@@ -861,7 +857,7 @@ class UpCountrySelectComponent extends UpFieldControlComponent {
861
857
  />
862
858
  `, isInline: true, dependencies: [{ kind: "component", type: UpSelectComponent, selector: "up-select", inputs: ["items", "label", "appendTo", "placeholder", "bindLabel", "bindValue", "value", "class", "loading", "multiple", "required", "disabled", "clearable", "addTag", "searchable", "virtualScroll"], outputs: ["valueChange", "changed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
863
859
  }
864
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCountrySelectComponent, decorators: [{
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCountrySelectComponent, decorators: [{
865
861
  type: Component,
866
862
  args: [{
867
863
  standalone: true,
@@ -905,16 +901,16 @@ class UpCurrencySelectComponent extends UpFieldControlComponent {
905
901
  constructor(service) {
906
902
  super();
907
903
  this.service = service;
908
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
909
- this.clearable = input(true, ...(ngDevMode ? [{ debugName: "clearable" }] : []));
910
- this.placeholder = input('Select currency', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
911
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
912
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
913
- this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
904
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}) });
905
+ this.clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : {}) });
906
+ this.placeholder = input('Select currency', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
907
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
908
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
909
+ this.value = model(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
914
910
  this.changed = output();
915
- this.isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
916
- this._disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
917
- this.currencies = signal([], ...(ngDevMode ? [{ debugName: "currencies" }] : []));
911
+ this.isLoading = signal(true, { ...(ngDevMode ? { debugName: "isLoading" } : {}) });
912
+ this._disabled = signal(false, { ...(ngDevMode ? { debugName: "_disabled" } : {}) });
913
+ this.currencies = signal([], { ...(ngDevMode ? { debugName: "currencies" } : {}) });
918
914
  this.isTouched = false;
919
915
  this._onTouched = () => { };
920
916
  this._onChange = (_val) => { };
@@ -973,8 +969,8 @@ class UpCurrencySelectComponent extends UpFieldControlComponent {
973
969
  this.changed.emit(this.currencies().find(c => c.code === value));
974
970
  }
975
971
  }
976
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCurrencySelectComponent, deps: [{ token: i1$1.CurrencyService }], target: i0.ɵɵFactoryTarget.Component }); }
977
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: UpCurrencySelectComponent, isStandalone: true, selector: "up-currency-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block" }, providers: [
972
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCurrencySelectComponent, deps: [{ token: i1$1.CurrencyService }], target: i0.ɵɵFactoryTarget.Component }); }
973
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpCurrencySelectComponent, isStandalone: true, selector: "up-currency-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block" }, providers: [
978
974
  {
979
975
  provide: UpFieldControl,
980
976
  useExisting: forwardRef(() => UpCurrencySelectComponent)
@@ -999,7 +995,7 @@ class UpCurrencySelectComponent extends UpFieldControlComponent {
999
995
  />
1000
996
  `, isInline: true, dependencies: [{ kind: "component", type: UpSelectComponent, selector: "up-select", inputs: ["items", "label", "appendTo", "placeholder", "bindLabel", "bindValue", "value", "class", "loading", "multiple", "required", "disabled", "clearable", "addTag", "searchable", "virtualScroll"], outputs: ["valueChange", "changed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1001
997
  }
1002
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCurrencySelectComponent, decorators: [{
998
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpCurrencySelectComponent, decorators: [{
1003
999
  type: Component,
1004
1000
  args: [{
1005
1001
  standalone: true,
@@ -1042,31 +1038,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
1042
1038
  class UpSearchableSelectComponent extends UpFieldControlComponent {
1043
1039
  constructor() {
1044
1040
  super();
1045
- this.query = input.required(...(ngDevMode ? [{ debugName: "query" }] : []));
1046
- this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
1047
- this.appendTo = input('', ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
1048
- this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
1049
- this.initialItems = input([], ...(ngDevMode ? [{ debugName: "initialItems" }] : []));
1050
- this.bindLabel = input('label', ...(ngDevMode ? [{ debugName: "bindLabel" }] : []));
1051
- this.bindValue = input('value', ...(ngDevMode ? [{ debugName: "bindValue" }] : []));
1052
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
1053
- this.addTag = input(false, ...(ngDevMode ? [{ debugName: "addTag", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1054
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1055
- this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1056
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1057
- this.clearable = input(true, ...(ngDevMode ? [{ debugName: "clearable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1058
- this.virtualScroll = input(false, ...(ngDevMode ? [{ debugName: "virtualScroll", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1059
- this.loading = model(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
1060
- this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
1041
+ this.query = input.required({ ...(ngDevMode ? { debugName: "query" } : {}) });
1042
+ this.label = input('', { ...(ngDevMode ? { debugName: "label" } : {}) });
1043
+ this.appendTo = input('', { ...(ngDevMode ? { debugName: "appendTo" } : {}) });
1044
+ this.placeholder = input('', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
1045
+ this.initialItems = input([], { ...(ngDevMode ? { debugName: "initialItems" } : {}) });
1046
+ this.bindLabel = input('label', { ...(ngDevMode ? { debugName: "bindLabel" } : {}) });
1047
+ this.bindValue = input('value', { ...(ngDevMode ? { debugName: "bindValue" } : {}) });
1048
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
1049
+ this.addTag = input(false, { ...(ngDevMode ? { debugName: "addTag" } : {}), transform: booleanAttribute });
1050
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}), transform: booleanAttribute });
1051
+ this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: booleanAttribute });
1052
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
1053
+ this.clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : {}), transform: booleanAttribute });
1054
+ this.virtualScroll = input(false, { ...(ngDevMode ? { debugName: "virtualScroll" } : {}), transform: booleanAttribute });
1055
+ this.loading = model(false, { ...(ngDevMode ? { debugName: "loading" } : {}) });
1056
+ this.value = model(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
1061
1057
  this.changed = output();
1062
- this.control = contentChild(UpFieldControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
1058
+ this.control = contentChild(UpFieldControl, { ...(ngDevMode ? { debugName: "control" } : {}) });
1063
1059
  this._computedClass = computed(() => {
1064
1060
  return up('w-full min-w-0 h-9', 'data-[disabled=true]:[&>.ng-select-container]:cursor-not-allowed! data-[disabled=true]:[&>.ng-select-container]:opacity-50! data-[disabled=true]:[&>.ng-select-container]:bg-transparent!', '[&>.ng-select-container]:border! [&>.ng-select-container]:border-input! [&>.ng-select-container]:rounded-md! [&>.ng-select-container]:cursor-pointer! [&>.ng-select-container]:shadow-xs! [&>.ng-select-container]:items-center!', '[&>.ng-select-container>.ng-value-container>.ng-placeholder]:text-base! md:[&>.ng-select-container>.ng-value-container>.ng-placeholder]:text-sm!', '[&>.ng-select-container>.ng-value-container>.ng-value]:text-base! md:[&>.ng-select-container>.ng-value-container>.ng-value]:text-sm! [&>.ng-select-container>.ng-value-container>.ng-value]:text-black!', '[&.ng-select-focused>.ng-select-container]:border-ring! [&.ng-select-focused>.ng-select-container]:ring-ring/50! [&.ng-select-focused>.ng-select-container]:ring-[3px]!', this.inlineClass());
1065
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
1061
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
1066
1062
  this.items = computed(() => {
1067
1063
  const results = this._queryResults();
1068
1064
  return results.length > 0 ? results : this.initialItems();
1069
- }, ...(ngDevMode ? [{ debugName: "items" }] : []));
1065
+ }, { ...(ngDevMode ? { debugName: "items" } : {}) });
1070
1066
  this.typeahead = new Subject();
1071
1067
  this.query$ = this.typeahead.pipe(distinctUntilChanged(), debounceTime(300), tap(() => this.loading.set(true)), switchMap((k) => {
1072
1068
  return this.query()(k).pipe(map((result) => !result.length ? this.initialItems() : result), catchError(() => of(this.initialItems())));
@@ -1113,8 +1109,8 @@ class UpSearchableSelectComponent extends UpFieldControlComponent {
1113
1109
  this.changed.emit(this.value());
1114
1110
  }
1115
1111
  }
1116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSearchableSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1117
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.0", type: UpSearchableSelectComponent, isStandalone: true, selector: "up-searchable-select", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, initialItems: { classPropertyName: "initialItems", publicName: "initialItems", isSignal: true, isRequired: false, transformFunction: null }, bindLabel: { classPropertyName: "bindLabel", publicName: "bindLabel", isSignal: true, isRequired: false, transformFunction: null }, bindValue: { classPropertyName: "bindValue", publicName: "bindValue", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, addTag: { classPropertyName: "addTag", publicName: "addTag", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loading: "loadingChange", value: "valueChange", changed: "changed" }, host: { classAttribute: "block relative" }, providers: [
1112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSearchableSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1113
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.2", type: UpSearchableSelectComponent, isStandalone: true, selector: "up-searchable-select", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, initialItems: { classPropertyName: "initialItems", publicName: "initialItems", isSignal: true, isRequired: false, transformFunction: null }, bindLabel: { classPropertyName: "bindLabel", publicName: "bindLabel", isSignal: true, isRequired: false, transformFunction: null }, bindValue: { classPropertyName: "bindValue", publicName: "bindValue", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, addTag: { classPropertyName: "addTag", publicName: "addTag", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loading: "loadingChange", value: "valueChange", changed: "changed" }, host: { classAttribute: "block relative" }, providers: [
1118
1114
  {
1119
1115
  provide: UpFieldControl,
1120
1116
  useExisting: forwardRef(() => UpSearchableSelectComponent)
@@ -1125,6 +1121,7 @@ class UpSearchableSelectComponent extends UpFieldControlComponent {
1125
1121
  [minTermLength]="3"
1126
1122
  [virtualScroll]="true"
1127
1123
  [editableSearchTerm]="true"
1124
+ [ngModelOptions]="{ standalone: true }"
1128
1125
 
1129
1126
  [typeahead]="typeahead"
1130
1127
 
@@ -1148,7 +1145,7 @@ class UpSearchableSelectComponent extends UpFieldControlComponent {
1148
1145
  />
1149
1146
  `, isInline: true, styles: [".ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background-color:var(--accent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right-color:color-mix(in oklab,var(--primary) 50%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left:hover{background-color:color-mix(in oklab,var(--primary) 40%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%!important;padding-bottom:0!important;transform:translateY(-50%)!important}.ng-select .ng-select-container{transition:all .2s ease}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:.75rem}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:var(--muted-foreground)}.ng-select .ng-select-container .ng-arrow-wrapper{padding-right:.75rem}.ng-select .ng-select-container .ng-clear-wrapper{margin-right:.25rem;transition:color .2s ease}.ng-select .ng-select-container .ng-clear-wrapper:hover .ng-clear{color:var(--destructive)}.ng-dropdown-panel{overflow:hidden;margin-top:.25rem!important;border-color:var(--border)!important;border-radius:calc(var(--radius) - 2px)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.ng-dropdown-panel .ng-option-label{color:#000;font-size:1rem}@media screen and (min-width:48rem){.ng-dropdown-panel .ng-option-label{font-size:.875rem}}.ng-dropdown-panel .ng-option:hover,.ng-dropdown-panel .ng-option-marked{background-color:var(--accent)!important}.ng-dropdown-panel .ng-option-selected{color:#000!important;background-color:color-mix(in oklab,var(--primary) 15%,transparent)!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "dropdownPosition", "appendTo", "outsideClickEvent", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "tabFocusOnClearButton", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "deselectOnClick", "clearSearchOnAdd", "compareWith", "keyDownFn", "bindLabel", "bindValue", "appearance", "isOpen", "items"], outputs: ["bindLabelChange", "bindValueChange", "appearanceChange", "isOpenChange", "itemsChange", "blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"], exportAs: ["ngSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1150
1147
  }
1151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpSearchableSelectComponent, decorators: [{
1148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpSearchableSelectComponent, decorators: [{
1152
1149
  type: Component,
1153
1150
  args: [{ standalone: true, selector: 'up-searchable-select', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
1154
1151
  class: 'block relative',
@@ -1166,6 +1163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
1166
1163
  [minTermLength]="3"
1167
1164
  [virtualScroll]="true"
1168
1165
  [editableSearchTerm]="true"
1166
+ [ngModelOptions]="{ standalone: true }"
1169
1167
 
1170
1168
  [typeahead]="typeahead"
1171
1169
 
@@ -1190,26 +1188,165 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
1190
1188
  `, styles: [".ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{background-color:var(--accent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right-color:color-mix(in oklab,var(--primary) 50%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left:hover{background-color:color-mix(in oklab,var(--primary) 40%,transparent)!important}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%!important;padding-bottom:0!important;transform:translateY(-50%)!important}.ng-select .ng-select-container{transition:all .2s ease}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:.75rem}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:var(--muted-foreground)}.ng-select .ng-select-container .ng-arrow-wrapper{padding-right:.75rem}.ng-select .ng-select-container .ng-clear-wrapper{margin-right:.25rem;transition:color .2s ease}.ng-select .ng-select-container .ng-clear-wrapper:hover .ng-clear{color:var(--destructive)}.ng-dropdown-panel{overflow:hidden;margin-top:.25rem!important;border-color:var(--border)!important;border-radius:calc(var(--radius) - 2px)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.ng-dropdown-panel .ng-option-label{color:#000;font-size:1rem}@media screen and (min-width:48rem){.ng-dropdown-panel .ng-option-label{font-size:.875rem}}.ng-dropdown-panel .ng-option:hover,.ng-dropdown-panel .ng-option-marked{background-color:var(--accent)!important}.ng-dropdown-panel .ng-option-selected{color:#000!important;background-color:color-mix(in oklab,var(--primary) 15%,transparent)!important}\n"] }]
1191
1189
  }], ctorParameters: () => [], propDecorators: { query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], initialItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialItems", required: false }] }], bindLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "bindLabel", required: false }] }], bindValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "bindValue", required: false }] }], inlineClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], addTag: [{ type: i0.Input, args: [{ isSignal: true, alias: "addTag", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }, { type: i0.Output, args: ["loadingChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], changed: [{ type: i0.Output, args: ["changed"] }], control: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UpFieldControl), { isSignal: true }] }] } });
1192
1190
 
1191
+ class UpRateGroupCodeSelectComponent extends UpFieldControlComponent {
1192
+ constructor(service) {
1193
+ super();
1194
+ this.service = service;
1195
+ this.appendTo = input('body', { ...(ngDevMode ? { debugName: "appendTo" } : {}) });
1196
+ this.placeholder = input('Select rate group code', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
1197
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
1198
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
1199
+ this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}), transform: booleanAttribute });
1200
+ this.clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : {}), transform: booleanAttribute });
1201
+ this.value = model(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
1202
+ this.changed = output();
1203
+ this.isLoading = signal(true, { ...(ngDevMode ? { debugName: "isLoading" } : {}) });
1204
+ this._disabled = signal(false, { ...(ngDevMode ? { debugName: "_disabled" } : {}) });
1205
+ this.rateGroupCodes = signal([], { ...(ngDevMode ? { debugName: "rateGroupCodes" } : {}) });
1206
+ this.queryFn = (keyword) => {
1207
+ if (!keyword ||
1208
+ keyword.length < 3) {
1209
+ return of(this.rateGroupCodes().filter(({ code }) => code.toLowerCase().includes(keyword.toLowerCase())));
1210
+ }
1211
+ return this.service.query({ key: keyword }).pipe(map(({ data: { productMsSearchRateGroupCodes: { data } } }) => {
1212
+ return data.map((code) => ({ code, name: code }));
1213
+ }), catchError(() => of([])));
1214
+ };
1215
+ this.isTouched = false;
1216
+ this._onTouched = () => { };
1217
+ this._onChange = (_val) => { };
1218
+ if (this.ngControl) {
1219
+ this.ngControl.valueAccessor = this;
1220
+ }
1221
+ }
1222
+ ngOnInit() {
1223
+ this.sub = this.service.query().subscribe({
1224
+ error: () => {
1225
+ this.rateGroupCodes.set([]);
1226
+ this.isLoading.set(false);
1227
+ },
1228
+ next: ({ data: { productMsSearchRateGroupCodes: { data } } }) => {
1229
+ this.rateGroupCodes.set(data.map((code) => ({ code, name: code })));
1230
+ this.isLoading.set(false);
1231
+ }
1232
+ });
1233
+ }
1234
+ ngOnDestroy() {
1235
+ this.sub?.unsubscribe();
1236
+ }
1237
+ registerOnChange(fn) {
1238
+ this._onChange = fn;
1239
+ }
1240
+ registerOnTouched(fn) {
1241
+ this._onTouched = fn;
1242
+ }
1243
+ setDisabledState(isDisabled) {
1244
+ this._disabled.set(isDisabled);
1245
+ }
1246
+ writeValue(value) {
1247
+ this.value.set(value);
1248
+ }
1249
+ onTouched() {
1250
+ if (!this.isTouched) {
1251
+ this._onTouched();
1252
+ this.isTouched = true;
1253
+ }
1254
+ }
1255
+ change(value) {
1256
+ if (!this.isTouched) {
1257
+ this._onTouched();
1258
+ this.isTouched = true;
1259
+ }
1260
+ if (!this.disabled()) {
1261
+ this.value.set(value);
1262
+ this._onChange(value);
1263
+ this.changed.emit(value);
1264
+ }
1265
+ }
1266
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpRateGroupCodeSelectComponent, deps: [{ token: i1$1.RateGroupCodeService }], target: i0.ɵɵFactoryTarget.Component }); }
1267
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpRateGroupCodeSelectComponent, isStandalone: true, selector: "up-rate-group-code-select", inputs: { appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed" }, host: { classAttribute: "block" }, providers: [
1268
+ {
1269
+ provide: UpFieldControl,
1270
+ useExisting: forwardRef(() => UpRateGroupCodeSelectComponent),
1271
+ }
1272
+ ], usesInheritance: true, ngImport: i0, template: `
1273
+ <up-searchable-select
1274
+ virtualScroll
1275
+ bindValue="code"
1276
+ bindLabel="name"
1277
+ [query]="queryFn"
1278
+ [value]="value()"
1279
+ [loading]="isLoading()"
1280
+ [multiple]="multiple()"
1281
+ [class]="inlineClass()"
1282
+ [appendTo]="appendTo()"
1283
+ [clearable]="clearable()"
1284
+ [placeholder]="placeholder()"
1285
+ [initialItems]="rateGroupCodes()"
1286
+ [disabled]="disabled() || _disabled()"
1287
+ (blur)="onTouched()"
1288
+ (changed)="change($event)"
1289
+ />
1290
+ `, isInline: true, dependencies: [{ kind: "component", type: UpSearchableSelectComponent, selector: "up-searchable-select", inputs: ["query", "label", "appendTo", "placeholder", "initialItems", "bindLabel", "bindValue", "class", "addTag", "multiple", "required", "disabled", "clearable", "virtualScroll", "loading", "value"], outputs: ["loadingChange", "valueChange", "changed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1291
+ }
1292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpRateGroupCodeSelectComponent, decorators: [{
1293
+ type: Component,
1294
+ args: [{
1295
+ standalone: true,
1296
+ selector: 'up-rate-group-code-select',
1297
+ changeDetection: ChangeDetectionStrategy.OnPush,
1298
+ host: {
1299
+ class: 'block'
1300
+ },
1301
+ imports: [
1302
+ UpSearchableSelectComponent
1303
+ ],
1304
+ providers: [
1305
+ {
1306
+ provide: UpFieldControl,
1307
+ useExisting: forwardRef(() => UpRateGroupCodeSelectComponent),
1308
+ }
1309
+ ],
1310
+ template: `
1311
+ <up-searchable-select
1312
+ virtualScroll
1313
+ bindValue="code"
1314
+ bindLabel="name"
1315
+ [query]="queryFn"
1316
+ [value]="value()"
1317
+ [loading]="isLoading()"
1318
+ [multiple]="multiple()"
1319
+ [class]="inlineClass()"
1320
+ [appendTo]="appendTo()"
1321
+ [clearable]="clearable()"
1322
+ [placeholder]="placeholder()"
1323
+ [initialItems]="rateGroupCodes()"
1324
+ [disabled]="disabled() || _disabled()"
1325
+ (blur)="onTouched()"
1326
+ (changed)="change($event)"
1327
+ />
1328
+ `,
1329
+ }]
1330
+ }], ctorParameters: () => [{ type: i1$1.RateGroupCodeService }], propDecorators: { appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], inlineClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], changed: [{ type: i0.Output, args: ["changed"] }] } });
1331
+
1193
1332
  class UpDatepickerComponent extends UpFieldControlComponent {
1194
1333
  constructor() {
1195
1334
  super();
1196
- this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
1197
- this.minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1198
- this.maxDate = input(null, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1199
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
1200
- this.dateFormat = input('dd LLL yyyy', ...(ngDevMode ? [{ debugName: "dateFormat", alias: 'format' }] : [{ alias: 'format' }]));
1201
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{
1202
- transform: booleanAttribute
1203
- }]));
1204
- this.btnTrigger = viewChild('btnTrigger', ...(ngDevMode ? [{ debugName: "btnTrigger" }] : []));
1205
- this.value = signal(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
1206
- this._disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
1335
+ this.placeholder = input('', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
1336
+ this.minDate = input(null, { ...(ngDevMode ? { debugName: "minDate" } : {}) });
1337
+ this.maxDate = input(null, { ...(ngDevMode ? { debugName: "maxDate" } : {}) });
1338
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
1339
+ this.dateFormat = input('dd LLL yyyy', { ...(ngDevMode ? { debugName: "dateFormat" } : {}), alias: 'format' });
1340
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
1341
+ this.btnTrigger = viewChild('btnTrigger', { ...(ngDevMode ? { debugName: "btnTrigger" } : {}) });
1342
+ this.value = signal(null, { ...(ngDevMode ? { debugName: "value" } : {}) });
1343
+ this._disabled = signal(false, { ...(ngDevMode ? { debugName: "_disabled" } : {}) });
1207
1344
  this.formattedDate = computed(() => {
1208
1345
  return this.value() ? format(this.value(), this.dateFormat()) : '';
1209
- }, ...(ngDevMode ? [{ debugName: "formattedDate" }] : []));
1346
+ }, { ...(ngDevMode ? { debugName: "formattedDate" } : {}) });
1210
1347
  this._computedClass = computed(() => {
1211
1348
  return up('flex justify-between px-3 border border-border min-w-48 w-full font-normal hover:not-disabled:text-primary! data-[has-value=false]:text-muted-foreground', this.inlineClass());
1212
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
1349
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
1213
1350
  this._isTouched = false;
1214
1351
  this._onTouched = () => { };
1215
1352
  this._onChange = () => { };
@@ -1244,8 +1381,8 @@ class UpDatepickerComponent extends UpFieldControlComponent {
1244
1381
  this._onTouched();
1245
1382
  this._isTouched = true;
1246
1383
  }
1247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1248
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.0", type: UpDatepickerComponent, isStandalone: true, selector: "up-datepicker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
1384
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1385
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.2", type: UpDatepickerComponent, isStandalone: true, selector: "up-datepicker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
1249
1386
  {
1250
1387
  provide: UpFieldControl,
1251
1388
  useExisting: forwardRef(() => UpDatepickerComponent),
@@ -1289,7 +1426,7 @@ class UpDatepickerComponent extends UpFieldControlComponent {
1289
1426
  </up-popover>
1290
1427
  `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: UpButtonDirective, selector: "[upButton]", inputs: ["size", "variant", "class"], exportAs: ["upButton"] }, { kind: "component", type: UpPopoverComponent, selector: "up-popover", inputs: ["placement", "alignment", "placementOffset", "alignmentOffset"] }, { kind: "component", type: UpCalendarComponent, selector: "up-calendar", inputs: ["minDate", "maxDate", "variant", "activeDay", "activeRangeDay"], outputs: ["selected", "rangeSelected", "activeDayChange", "activeRangeDayChange"] }, { kind: "directive", type: UpPopoverTriggerDirective, selector: "[upPopoverTrigger]", exportAs: ["upPopoverTrigger"] }, { kind: "directive", type: UpPopoverContentRefDirective, selector: "[upPopoverContentRef]", exportAs: ["upPopoverContentRef"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1291
1428
  }
1292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpDatepickerComponent, decorators: [{
1429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpDatepickerComponent, decorators: [{
1293
1430
  type: Component,
1294
1431
  args: [{
1295
1432
  standalone: true,
@@ -1353,22 +1490,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
1353
1490
  class UpDateRangePickerComponent extends UpFieldControlComponent {
1354
1491
  constructor() {
1355
1492
  super();
1356
- this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
1357
- this.minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1358
- this.maxDate = input(null, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1359
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
1360
- this.dateFormat = input('dd LLL yyyy', ...(ngDevMode ? [{ debugName: "dateFormat", alias: 'format' }] : [{ alias: 'format' }]));
1361
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{
1362
- transform: booleanAttribute
1363
- }]));
1364
- this._disabled = signal(false, ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
1365
- this.value = signal({ from: null, to: null }, ...(ngDevMode ? [{ debugName: "value" }] : []));
1493
+ this.placeholder = input('', { ...(ngDevMode ? { debugName: "placeholder" } : {}) });
1494
+ this.minDate = input(null, { ...(ngDevMode ? { debugName: "minDate" } : {}) });
1495
+ this.maxDate = input(null, { ...(ngDevMode ? { debugName: "maxDate" } : {}) });
1496
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
1497
+ this.dateFormat = input('dd LLL yyyy', { ...(ngDevMode ? { debugName: "dateFormat" } : {}), alias: 'format' });
1498
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
1499
+ this._disabled = signal(false, { ...(ngDevMode ? { debugName: "_disabled" } : {}) });
1500
+ this.value = signal({ from: null, to: null }, { ...(ngDevMode ? { debugName: "value" } : {}) });
1366
1501
  this.formattedDate = computed(() => {
1367
1502
  return this.value().from && this.value().to ? `${format(this.value().from, this.dateFormat())} - ${format(this.value().to, this.dateFormat())}` : '';
1368
- }, ...(ngDevMode ? [{ debugName: "formattedDate" }] : []));
1503
+ }, { ...(ngDevMode ? { debugName: "formattedDate" } : {}) });
1369
1504
  this._computedClass = computed(() => {
1370
1505
  return up('flex justify-between px-3 border border-border min-w-60 w-full font-normal hover:not-disabled:text-primary! data-[has-value=false]:text-muted-foreground', this.inlineClass());
1371
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
1506
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
1372
1507
  this._isTouched = false;
1373
1508
  this._onTouched = () => { };
1374
1509
  this._onChange = () => { };
@@ -1402,8 +1537,8 @@ class UpDateRangePickerComponent extends UpFieldControlComponent {
1402
1537
  this._onTouched();
1403
1538
  this._isTouched = true;
1404
1539
  }
1405
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpDateRangePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1406
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: UpDateRangePickerComponent, isStandalone: true, selector: "up-date-range-picker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
1540
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpDateRangePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1541
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.2", type: UpDateRangePickerComponent, isStandalone: true, selector: "up-date-range-picker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
1407
1542
  {
1408
1543
  provide: UpFieldControl,
1409
1544
  useExisting: forwardRef(() => UpDateRangePickerComponent)
@@ -1448,7 +1583,7 @@ class UpDateRangePickerComponent extends UpFieldControlComponent {
1448
1583
  </up-popover>
1449
1584
  `, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: UpButtonDirective, selector: "[upButton]", inputs: ["size", "variant", "class"], exportAs: ["upButton"] }, { kind: "component", type: UpPopoverComponent, selector: "up-popover", inputs: ["placement", "alignment", "placementOffset", "alignmentOffset"] }, { kind: "component", type: UpCalendarComponent, selector: "up-calendar", inputs: ["minDate", "maxDate", "variant", "activeDay", "activeRangeDay"], outputs: ["selected", "rangeSelected", "activeDayChange", "activeRangeDayChange"] }, { kind: "directive", type: UpPopoverTriggerDirective, selector: "[upPopoverTrigger]", exportAs: ["upPopoverTrigger"] }, { kind: "directive", type: UpPopoverContentRefDirective, selector: "[upPopoverContentRef]", exportAs: ["upPopoverContentRef"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1450
1585
  }
1451
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpDateRangePickerComponent, decorators: [{
1586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpDateRangePickerComponent, decorators: [{
1452
1587
  type: Component,
1453
1588
  args: [{
1454
1589
  standalone: true,
@@ -1512,14 +1647,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
1512
1647
 
1513
1648
  class UpFormFieldComponent {
1514
1649
  constructor() {
1515
- this.name = input('', ...(ngDevMode ? [{ debugName: "name" }] : []));
1516
- this.hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : []));
1517
- this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
1518
- this.inlineClass = input('', ...(ngDevMode ? [{ debugName: "inlineClass", alias: 'class' }] : [{ alias: 'class' }]));
1519
- this.control = contentChild(UpFieldControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
1650
+ this.name = input('', { ...(ngDevMode ? { debugName: "name" } : {}) });
1651
+ this.hint = input('', { ...(ngDevMode ? { debugName: "hint" } : {}) });
1652
+ this.label = input('', { ...(ngDevMode ? { debugName: "label" } : {}) });
1653
+ this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : {}), alias: 'class' });
1654
+ this.control = contentChild(UpFieldControl, { ...(ngDevMode ? { debugName: "control" } : {}) });
1520
1655
  this._computedClass = computed(() => {
1521
1656
  return up('block space-y-2', this.inlineClass());
1522
- }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
1657
+ }, { ...(ngDevMode ? { debugName: "_computedClass" } : {}) });
1523
1658
  effect(() => {
1524
1659
  if (!this.control()) {
1525
1660
  throw new Error('Form field must contain a field control, eg: input, checkbox, textarea, etc.');
@@ -1527,8 +1662,8 @@ class UpFormFieldComponent {
1527
1662
  this.control().setControlName(this.label());
1528
1663
  });
1529
1664
  }
1530
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1531
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: UpFormFieldComponent, isStandalone: true, selector: "up-form-field", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, queries: [{ propertyName: "control", first: true, predicate: UpFieldControl, descendants: true, isSignal: true }], ngImport: i0, template: `
1665
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1666
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.2", type: UpFormFieldComponent, isStandalone: true, selector: "up-form-field", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, queries: [{ propertyName: "control", first: true, predicate: UpFieldControl, descendants: true, isSignal: true }], ngImport: i0, template: `
1532
1667
  <div
1533
1668
  class="
1534
1669
  group flex flex-col gap-2
@@ -1560,7 +1695,7 @@ class UpFormFieldComponent {
1560
1695
  }
1561
1696
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1562
1697
  }
1563
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFormFieldComponent, decorators: [{
1698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: UpFormFieldComponent, decorators: [{
1564
1699
  type: Component,
1565
1700
  args: [{
1566
1701
  standalone: true,
@@ -1691,9 +1826,116 @@ function validRangeValidator(fromKey, toKey) {
1691
1826
  };
1692
1827
  }
1693
1828
 
1829
+ /**
1830
+ * Validator that requires all specified form controls to have the same value.
1831
+ *
1832
+ * @param {string[]} controlNames - The names of the controls that must match
1833
+ * @param {string} [message] - Optional custom error message
1834
+ * @returns {ValidatorFn} A validator function producing an `isEqual` error if values do not match
1835
+ *
1836
+ * @example
1837
+ * this.form = new FormGroup({
1838
+ * password: new FormControl(''),
1839
+ * confirmPassword: new FormControl(''),
1840
+ * }, { validators: isEqualValidator(['password', 'confirmPassword']) });
1841
+ */
1842
+ function isEqualValidator(controlNames, message) {
1843
+ return (group) => {
1844
+ if (!group ||
1845
+ controlNames.length < 2) {
1846
+ return null;
1847
+ }
1848
+ let isEmpty = false;
1849
+ const values = controlNames.reduce((acc, name) => {
1850
+ const control = group.get(name);
1851
+ if (!control) {
1852
+ return acc;
1853
+ }
1854
+ if (!control.value) {
1855
+ isEmpty = true;
1856
+ return acc;
1857
+ }
1858
+ acc.push(control.value);
1859
+ return acc;
1860
+ }, []);
1861
+ if (isEmpty) {
1862
+ return null;
1863
+ }
1864
+ if (!values.every(v => v === values[0])) {
1865
+ const labels = controlNames.map((name) => {
1866
+ return name
1867
+ .replace(/([a-z])([A-Z])/g, '$1 $2')
1868
+ .replace(/_/g, ' ')
1869
+ .replace(/\b\w/g, char => char.toUpperCase());
1870
+ });
1871
+ return {
1872
+ isEqual: {
1873
+ fields: controlNames,
1874
+ message: message || `${labels.join(', ')} should have the same value`
1875
+ }
1876
+ };
1877
+ }
1878
+ return null;
1879
+ };
1880
+ }
1881
+
1882
+ /**
1883
+ * Validator that requires all specified form controls to have different values.
1884
+ *
1885
+ * @param {string[]} controlNames - The names of the controls that must all be unique
1886
+ * @param {string} [message] - Optional custom error message
1887
+ * @returns {ValidatorFn} A validator function producing an `isNotEqual` error if duplicate values exist
1888
+ *
1889
+ * @example
1890
+ * this.form = new FormGroup({
1891
+ * primaryEmail: new FormControl(''),
1892
+ * secondaryEmail: new FormControl(''),
1893
+ * backupEmail: new FormControl(''),
1894
+ * }, { validators: isNotEqualValidator(['primaryEmail', 'secondaryEmail', 'backupEmail']) });
1895
+ */
1896
+ function isNotEqualValidator(controlNames, message) {
1897
+ return (group) => {
1898
+ if (!group ||
1899
+ controlNames.length < 2) {
1900
+ return null;
1901
+ }
1902
+ let isEmpty = false;
1903
+ const values = controlNames.reduce((acc, name) => {
1904
+ const control = group.get(name);
1905
+ if (!control) {
1906
+ return acc;
1907
+ }
1908
+ if (!control.value) {
1909
+ isEmpty = true;
1910
+ return acc;
1911
+ }
1912
+ acc.push(control.value);
1913
+ return acc;
1914
+ }, []);
1915
+ if (isEmpty) {
1916
+ return null;
1917
+ }
1918
+ if (new Set(values).size !== values.length) {
1919
+ const labels = controlNames.map((name) => {
1920
+ return name
1921
+ .replace(/([a-z])([A-Z])/g, '$1 $2')
1922
+ .replace(/_/g, ' ')
1923
+ .replace(/\b\w/g, char => char.toUpperCase());
1924
+ });
1925
+ return {
1926
+ isNotEqual: {
1927
+ fields: controlNames,
1928
+ message: message || `${labels.join(', ')} should have different values`
1929
+ }
1930
+ };
1931
+ }
1932
+ return null;
1933
+ };
1934
+ }
1935
+
1694
1936
  /**
1695
1937
  * Generated bundle index. Do not edit.
1696
1938
  */
1697
1939
 
1698
- export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpInputDirective, UpNumberDirective, UpPasswordComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, setValidator, toggleFormControls, validRangeValidator };
1940
+ export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpInputDirective, UpNumberDirective, UpPasswordComponent, UpRateGroupCodeSelectComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, isEqualValidator, isNotEqualValidator, setValidator, toggleFormControls, validRangeValidator };
1699
1941
  //# sourceMappingURL=unipin-angular-applet-forms.mjs.map