@pumpkin-tech/pumpkin-tech-ng 0.2.20 → 0.2.22
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.
|
@@ -4434,9 +4434,9 @@ class InputCurrencyComponent extends BaseField {
|
|
|
4434
4434
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
4435
4435
|
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4436
4436
|
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4437
|
-
<mat-label
|
|
4438
|
-
{{ label }}
|
|
4439
|
-
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4437
|
+
<mat-label>
|
|
4438
|
+
<span class="label-text" [class.label-text--empty]="!label">{{ label || ' ' }}</span>
|
|
4439
|
+
<span class="required-marker" *ngIf="required" aria-hidden="true">*</span>
|
|
4440
4440
|
</mat-label>
|
|
4441
4441
|
|
|
4442
4442
|
<input
|
|
@@ -4464,16 +4464,16 @@ class InputCurrencyComponent extends BaseField {
|
|
|
4464
4464
|
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4465
4465
|
</mat-form-field>
|
|
4466
4466
|
</div>
|
|
4467
|
-
`, isInline: true, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}
|
|
4467
|
+
`, isInline: true, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}.label-text--empty{visibility:hidden}.required-marker{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4468
4468
|
}
|
|
4469
4469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
4470
4470
|
type: Component,
|
|
4471
4471
|
args: [{ selector: 'ptech-input-currency', imports: [CoreMaterialModule], template: `
|
|
4472
4472
|
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4473
4473
|
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4474
|
-
<mat-label
|
|
4475
|
-
{{ label }}
|
|
4476
|
-
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4474
|
+
<mat-label>
|
|
4475
|
+
<span class="label-text" [class.label-text--empty]="!label">{{ label || ' ' }}</span>
|
|
4476
|
+
<span class="required-marker" *ngIf="required" aria-hidden="true">*</span>
|
|
4477
4477
|
</mat-label>
|
|
4478
4478
|
|
|
4479
4479
|
<input
|
|
@@ -4505,7 +4505,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4505
4505
|
provide: NG_VALUE_ACCESSOR,
|
|
4506
4506
|
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4507
4507
|
multi: true
|
|
4508
|
-
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}
|
|
4508
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}.label-text--empty{visibility:hidden}.required-marker{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
4509
4509
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
4510
4510
|
type: Input
|
|
4511
4511
|
}], valueChange: [{
|