@skyux/code-examples 12.0.0-alpha.14 → 12.0.0-alpha.15
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.
|
@@ -7077,21 +7077,12 @@ class FormsFileAttachmentBasicExampleComponent {
|
|
|
7077
7077
|
attachment: this.attachment,
|
|
7078
7078
|
});
|
|
7079
7079
|
}
|
|
7080
|
-
onFileClick($event) {
|
|
7081
|
-
// Ensure we are only attempting to navigate to locally updated data for download.
|
|
7082
|
-
if ($event.file.url.startsWith('data:')) {
|
|
7083
|
-
const link = document.createElement('a');
|
|
7084
|
-
link.download = $event.file.file.name;
|
|
7085
|
-
link.href = $event.file.url;
|
|
7086
|
-
link.click();
|
|
7087
|
-
}
|
|
7088
|
-
}
|
|
7089
7080
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormsFileAttachmentBasicExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: FormsFileAttachmentBasicExampleComponent, isStandalone: true, selector: "app-forms-file-attachment-basic-example", ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n data-sky-id=\"birth-certificate\"\n formControlName=\"attachment\"\n helpPopoverTitle=\"Requirements\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [helpPopoverContent]=\"helpInlinePopoverRef\"\n [maxFileSize]=\"maxFileSize\"\n
|
|
7081
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: FormsFileAttachmentBasicExampleComponent, isStandalone: true, selector: "app-forms-file-attachment-basic-example", ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n data-sky-id=\"birth-certificate\"\n formControlName=\"attachment\"\n helpPopoverTitle=\"Requirements\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [helpPopoverContent]=\"helpInlinePopoverRef\"\n [maxFileSize]=\"maxFileSize\"\n >\n @if (attachment.errors?.['invalidStartingLetter']) {\n <sky-form-error\n errorName=\"invalidStartingLetter\"\n errorText=\"You may not upload a file that begins with the letter 'a'.\"\n />\n }\n </sky-file-attachment>\n</form>\n\n<ng-template #helpInlinePopoverRef>\n Make sure the birth certificate includes:\n <ul>\n <li>Full name of child</li>\n <li>Birth date</li>\n <li>Place of birth</li>\n <li>Name and signature of the physician or midwife</li>\n <li>Registration or certificate number</li>\n </ul>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyFileAttachmentModule }, { kind: "component", type: i2.λ7, selector: "sky-file-attachment", inputs: ["acceptedTypes", "acceptedTypesErrorMessage", "disabled", "helpPopoverContent", "helpPopoverTitle", "helpKey", "labelText", "labelHidden", "hintText", "maxFileSize", "minFileSize", "stacked", "validateFn", "required"], outputs: ["fileChange", "fileClick"] }, { kind: "component", type: i2.λ22, selector: "sky-form-error", inputs: ["errorName", "errorText"] }] }); }
|
|
7091
7082
|
}
|
|
7092
7083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormsFileAttachmentBasicExampleComponent, decorators: [{
|
|
7093
7084
|
type: Component,
|
|
7094
|
-
args: [{ selector: 'app-forms-file-attachment-basic-example', imports: [FormsModule, ReactiveFormsModule, SkyFileAttachmentModule], template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n data-sky-id=\"birth-certificate\"\n formControlName=\"attachment\"\n helpPopoverTitle=\"Requirements\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [helpPopoverContent]=\"helpInlinePopoverRef\"\n [maxFileSize]=\"maxFileSize\"\n
|
|
7085
|
+
args: [{ selector: 'app-forms-file-attachment-basic-example', imports: [FormsModule, ReactiveFormsModule, SkyFileAttachmentModule], template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n data-sky-id=\"birth-certificate\"\n formControlName=\"attachment\"\n helpPopoverTitle=\"Requirements\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [helpPopoverContent]=\"helpInlinePopoverRef\"\n [maxFileSize]=\"maxFileSize\"\n >\n @if (attachment.errors?.['invalidStartingLetter']) {\n <sky-form-error\n errorName=\"invalidStartingLetter\"\n errorText=\"You may not upload a file that begins with the letter 'a'.\"\n />\n }\n </sky-file-attachment>\n</form>\n\n<ng-template #helpInlinePopoverRef>\n Make sure the birth certificate includes:\n <ul>\n <li>Full name of child</li>\n <li>Birth date</li>\n <li>Place of birth</li>\n <li>Name and signature of the physician or midwife</li>\n <li>Registration or certificate number</li>\n </ul>\n</ng-template>\n" }]
|
|
7095
7086
|
}], ctorParameters: () => [] });
|
|
7096
7087
|
|
|
7097
7088
|
/**
|
|
@@ -7259,21 +7250,12 @@ class FormsFileAttachmentHelpKeyExampleComponent {
|
|
|
7259
7250
|
attachment: this.attachment,
|
|
7260
7251
|
});
|
|
7261
7252
|
}
|
|
7262
|
-
onFileClick($event) {
|
|
7263
|
-
// Ensure we are only attempting to navigate to locally updated data for download.
|
|
7264
|
-
if ($event.file.url.startsWith('data:')) {
|
|
7265
|
-
const link = document.createElement('a');
|
|
7266
|
-
link.download = $event.file.file.name;
|
|
7267
|
-
link.href = $event.file.url;
|
|
7268
|
-
link.click();
|
|
7269
|
-
}
|
|
7270
|
-
}
|
|
7271
7253
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormsFileAttachmentHelpKeyExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7272
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: FormsFileAttachmentHelpKeyExampleComponent, isStandalone: true, selector: "app-forms-file-attachment-help-key-example", ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n formControlName=\"attachment\"\n helpKey=\"file-help\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [maxFileSize]=\"maxFileSize\"\n
|
|
7254
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: FormsFileAttachmentHelpKeyExampleComponent, isStandalone: true, selector: "app-forms-file-attachment-help-key-example", ngImport: i0, template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n formControlName=\"attachment\"\n helpKey=\"file-help\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [maxFileSize]=\"maxFileSize\"\n >\n @if (attachment.errors?.['invalidStartingLetter']) {\n <sky-form-error\n errorName=\"invalidStartingLetter\"\n errorText=\"You may not upload a file that begins with the letter 'a'.\"\n />\n }\n </sky-file-attachment>\n</form>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyFileAttachmentModule }, { kind: "component", type: i2.λ7, selector: "sky-file-attachment", inputs: ["acceptedTypes", "acceptedTypesErrorMessage", "disabled", "helpPopoverContent", "helpPopoverTitle", "helpKey", "labelText", "labelHidden", "hintText", "maxFileSize", "minFileSize", "stacked", "validateFn", "required"], outputs: ["fileChange", "fileClick"] }, { kind: "component", type: i2.λ22, selector: "sky-form-error", inputs: ["errorName", "errorText"] }] }); }
|
|
7273
7255
|
}
|
|
7274
7256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: FormsFileAttachmentHelpKeyExampleComponent, decorators: [{
|
|
7275
7257
|
type: Component,
|
|
7276
|
-
args: [{ selector: 'app-forms-file-attachment-help-key-example', imports: [FormsModule, ReactiveFormsModule, SkyFileAttachmentModule], template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n formControlName=\"attachment\"\n helpKey=\"file-help\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [maxFileSize]=\"maxFileSize\"\n
|
|
7258
|
+
args: [{ selector: 'app-forms-file-attachment-help-key-example', imports: [FormsModule, ReactiveFormsModule, SkyFileAttachmentModule], template: "<form [formGroup]=\"formGroup\">\n <sky-file-attachment\n acceptedTypes=\"application/pdf,image/jpeg,image/png,image/gif\"\n formControlName=\"attachment\"\n helpKey=\"file-help\"\n hintText=\"Attach a .pdf, .gif, .png, or .jpeg file.\"\n labelText=\"Birth certificate\"\n [maxFileSize]=\"maxFileSize\"\n >\n @if (attachment.errors?.['invalidStartingLetter']) {\n <sky-form-error\n errorName=\"invalidStartingLetter\"\n errorText=\"You may not upload a file that begins with the letter 'a'.\"\n />\n }\n </sky-file-attachment>\n</form>\n" }]
|
|
7277
7259
|
}], ctorParameters: () => [] });
|
|
7278
7260
|
|
|
7279
7261
|
/**
|
|
@@ -9423,7 +9405,7 @@ class ListsInfiniteScrollRepeaterExampleComponent {
|
|
|
9423
9405
|
}
|
|
9424
9406
|
#mockRemote() {
|
|
9425
9407
|
const data = [];
|
|
9426
|
-
for (let i = 0; i <
|
|
9408
|
+
for (let i = 0; i < 20; i++) {
|
|
9427
9409
|
data.push({
|
|
9428
9410
|
name: `Item #${++nextId$2}`,
|
|
9429
9411
|
});
|