@skyux/inline-form 5.0.0-beta.0 → 5.0.1

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 (53) hide show
  1. package/bundles/skyux-inline-form.umd.js +146 -349
  2. package/bundles/skyux-inline-form.umd.js.map +1 -1
  3. package/documentation.json +1089 -0
  4. package/esm2015/modules/inline-form/animations/slide-dissolve.js +9 -13
  5. package/esm2015/modules/inline-form/inline-form-adapter.service.js +16 -14
  6. package/esm2015/modules/inline-form/inline-form.component.js +52 -57
  7. package/esm2015/modules/inline-form/inline-form.module.js +16 -22
  8. package/esm2015/modules/inline-form/types/inline-form-button-action.js +2 -1
  9. package/esm2015/modules/inline-form/types/inline-form-button-config.js +2 -1
  10. package/esm2015/modules/inline-form/types/inline-form-button-layout.js +1 -1
  11. package/esm2015/modules/inline-form/types/inline-form-close-args.js +2 -1
  12. package/esm2015/modules/inline-form/types/inline-form-config.js +2 -1
  13. package/esm2015/modules/shared/sky-inline-form-resources.module.js +50 -0
  14. package/esm2015/public-api.js +10 -0
  15. package/esm2015/skyux-inline-form.js +2 -8
  16. package/fesm2015/skyux-inline-form.js +127 -130
  17. package/fesm2015/skyux-inline-form.js.map +1 -1
  18. package/modules/inline-form/inline-form-adapter.service.d.ts +3 -0
  19. package/modules/inline-form/inline-form.component.d.ts +3 -0
  20. package/modules/inline-form/inline-form.module.d.ts +7 -0
  21. package/modules/shared/sky-inline-form-resources.module.d.ts +14 -0
  22. package/package.json +9 -24
  23. package/{public_api.d.ts → public-api.d.ts} +1 -0
  24. package/skyux-inline-form.d.ts +2 -7
  25. package/CHANGELOG.md +0 -58
  26. package/bundles/skyux-inline-form.umd.min.js +0 -16
  27. package/bundles/skyux-inline-form.umd.min.js.map +0 -1
  28. package/esm2015/modules/shared/inline-form-for-root-compat.module.js +0 -18
  29. package/esm2015/modules/shared/inline-form-resources.module.js +0 -20
  30. package/esm2015/plugin-resources/inline-form-resources-provider.js +0 -16
  31. package/esm2015/public_api.js +0 -3
  32. package/esm5/modules/inline-form/animations/slide-dissolve.js +0 -30
  33. package/esm5/modules/inline-form/inline-form-adapter.service.js +0 -64
  34. package/esm5/modules/inline-form/inline-form.component.js +0 -241
  35. package/esm5/modules/inline-form/inline-form.module.js +0 -28
  36. package/esm5/modules/inline-form/types/inline-form-button-action.js +0 -1
  37. package/esm5/modules/inline-form/types/inline-form-button-config.js +0 -1
  38. package/esm5/modules/inline-form/types/inline-form-button-layout.js +0 -9
  39. package/esm5/modules/inline-form/types/inline-form-close-args.js +0 -1
  40. package/esm5/modules/inline-form/types/inline-form-config.js +0 -1
  41. package/esm5/modules/shared/inline-form-for-root-compat.module.js +0 -21
  42. package/esm5/modules/shared/inline-form-resources.module.js +0 -23
  43. package/esm5/plugin-resources/inline-form-resources-provider.js +0 -17
  44. package/esm5/public_api.js +0 -3
  45. package/esm5/skyux-inline-form.js +0 -11
  46. package/fesm5/skyux-inline-form.js +0 -414
  47. package/fesm5/skyux-inline-form.js.map +0 -1
  48. package/modules/shared/inline-form-for-root-compat.module.d.ts +0 -6
  49. package/modules/shared/inline-form-resources.module.d.ts +0 -2
  50. package/plugin-resources/inline-form-resources-provider.d.ts +0 -5
  51. package/skyux-inline-form.metadata.json +0 -1
  52. package/src/assets/img/anatomy.png +0 -0
  53. package/src/assets/locales/resources_en_US.json +0 -18
package/package.json CHANGED
@@ -1,36 +1,21 @@
1
1
  {
2
2
  "name": "@skyux/inline-form",
3
- "version": "5.0.0-beta.0",
4
- "description": "SKY UX Inline Form",
5
- "keywords": [],
6
- "author": "Blackbaud",
7
- "license": "ISC",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/blackbaud/skyux-inline-form.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/blackbaud/skyux-inline-form/issues"
14
- },
15
- "homepage": "https://github.com/blackbaud/skyux-inline-form#readme",
3
+ "version": "5.0.1",
16
4
  "peerDependencies": {
17
- "@angular/animations": "^9.1.6 || ^12",
18
- "@angular/common": "^9.1.6 || ^12",
19
- "@angular/core": "^9.1.6 || ^12",
20
- "@skyux/core": "^5.0.0-beta.0",
21
- "@skyux/i18n": "^5.0.0-beta.0"
5
+ "@angular/animations": "^12.2.13",
6
+ "@angular/common": "^12.2.13",
7
+ "@angular/core": "^12.2.13",
8
+ "@skyux/core": "^5.1.1",
9
+ "@skyux/i18n": "^5.0.0"
22
10
  },
23
11
  "dependencies": {
24
- "tslib": "^1.10.0"
12
+ "tslib": "^2.3.1"
25
13
  },
26
14
  "main": "bundles/skyux-inline-form.umd.js",
27
- "module": "fesm5/skyux-inline-form.js",
15
+ "module": "fesm2015/skyux-inline-form.js",
28
16
  "es2015": "fesm2015/skyux-inline-form.js",
29
- "esm5": "esm5/skyux-inline-form.js",
30
17
  "esm2015": "esm2015/skyux-inline-form.js",
31
- "fesm5": "fesm5/skyux-inline-form.js",
32
18
  "fesm2015": "fesm2015/skyux-inline-form.js",
33
19
  "typings": "skyux-inline-form.d.ts",
34
- "metadata": "skyux-inline-form.metadata.json",
35
20
  "sideEffects": false
36
- }
21
+ }
@@ -4,3 +4,4 @@ export * from './modules/inline-form/types/inline-form-button-config';
4
4
  export * from './modules/inline-form/types/inline-form-close-args';
5
5
  export * from './modules/inline-form/types/inline-form-config';
6
6
  export * from './modules/inline-form/types/inline-form-button-layout';
7
+ export { SkyInlineFormComponent as λ1 } from './modules/inline-form/inline-form.component';
@@ -1,10 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
- export * from './public_api';
5
- export { skySlideDissolve as ɵc } from './modules/inline-form/animations/slide-dissolve';
6
- export { SkyInlineFormAdapterService as ɵb } from './modules/inline-form/inline-form-adapter.service';
7
- export { SkyInlineFormComponent as ɵa } from './modules/inline-form/inline-form.component';
8
- export { SkyInlineFormForRootCompatModule as ɵd } from './modules/shared/inline-form-for-root-compat.module';
9
- export { SkyInlineFormResourcesModule as ɵe } from './modules/shared/inline-form-resources.module';
10
- export { SkyInlineFormResourcesProvider as ɵf } from './plugin-resources/inline-form-resources-provider';
4
+ /// <amd-module name="@skyux/inline-form" />
5
+ export * from './public-api';
package/CHANGELOG.md DELETED
@@ -1,58 +0,0 @@
1
- # 5.0.0-beta.0 (2021-07-07)
2
-
3
- - Initial beta release.
4
- - Added support for `5.0.0-beta.*` versions of SKY UX component libraries. [#50](https://github.com/blackbaud/skyux-inline-form/pull/50)
5
-
6
- # 5.0.0-alpha.0 (2021-05-21)
7
-
8
- - Removed `BrowserAnimationsModule` from the `imports` section of `SkyInlineFormModule` to support lazy-loading. Consumers of `SkyInlineFormModule` must now import `BrowserAnimationsModule` into their application's root module. [#47](https://github.com/blackbaud/skyux-inline-form/pull/47)
9
-
10
- # 4.1.1 (2021-03-18)
11
-
12
- - Replaced theme conditionals in templates with the new `skyThemeIf` directive. [#42](https://github.com/blackbaud/skyux-inline-form/pull/42)
13
-
14
- # 4.1.0 (2020-08-27)
15
-
16
- - Added modern theme styles to the inline form component. [#36](https://github.com/blackbaud/skyux-inline-form/pull/36)
17
-
18
- # 4.0.1 (2020-08-10)
19
-
20
- - Added support for `@skyux/theme@4.8.0` and `@skyux-sdk/builder@4.3.0`. [#29](https://github.com/blackbaud/skyux-inline-form/pull/29)
21
-
22
- # 4.0.0 (2020-05-12)
23
-
24
- ### New features
25
-
26
- - Added support for `@angular/core@^9`. [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
27
- - Updated the pipeline to transpile to the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview). [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
28
-
29
- ### Breaking changes
30
-
31
- - Dropped support for `rxjs@5`. Consumers can install `rxjs-compat@^6` to support older versions of `rxjs`. [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
32
-
33
- # 4.0.0-rc.0 (2020-02-21)
34
-
35
- ### New features
36
-
37
- - Added support for `@angular/core@^9`. [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
38
- - Updated the pipeline to transpile to the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview). [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
39
-
40
- ### Breaking changes
41
-
42
- - Dropped support for `rxjs@5`. Consumers can install `rxjs-compat@^6` to support older versions of `rxjs`. [#18](https://github.com/blackbaud/skyux-inline-form/pull/18)
43
-
44
- # 3.1.0 (2019-12-20)
45
-
46
- - Added the `disabled` property to `SkyInlineFormButtonConfig` to indicate whether to disable the button. [#15](https://github.com/blackbaud/skyux-inline-form/pull/15)
47
-
48
- # 3.0.1 (2019-12-13)
49
-
50
- - Fixed the inline form component to recognize changes to the `config` input. [#10](https://github.com/blackbaud/skyux-inline-form/pull/10) (Thanks [@blackbaud-jeremymorgan](https://github.com/blackbaud-jeremymorgan)!)
51
-
52
- # 3.0.0 (2019-04-15)
53
-
54
- - Major version release.
55
-
56
- # 3.0.0-rc.0 (2019-04-10)
57
-
58
- - Initial release candidate.
@@ -1,16 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@skyux/core"),require("@skyux/i18n"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@skyux/inline-form",["exports","@angular/common","@angular/core","@skyux/core","@skyux/i18n","rxjs","rxjs/operators","@angular/animations"],t):t(((e=e||self).skyux=e.skyux||{},e.skyux["inline-form"]={}),e.ng.common,e.ng.core,e.core$1,e.i18n,e.rxjs,e.rxjs.operators,e.ng.animations)}(this,(function(e,t,n,o,i,s,r,l){"use strict";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function u(e,t,n,o){var i,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(s<3?i(r):s>3?i(t,n,r):i(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r}var a,c=l.trigger("skySlideDissolve",[l.transition("* <=> *",[l.query(".sky-slide-dissolve-last:enter",[l.style({height:0,opacity:0}),l.animate("200ms ease-in",l.style({height:"*",opacity:0}))],{optional:!0}),l.query(".sky-slide-dissolve-last:enter",[l.style({opacity:0}),l.animate("200ms ease-in",l.style({opacity:1}))],{optional:!0}),l.query(".sky-slide-dissolve-last:leave",[l.animate("0ms",l.style({opacity:0}))],{optional:!0}),l.group([l.query(".sky-slide-dissolve-first:enter",[l.style({opacity:0,height:0}),l.animate("100ms ease-in",l.style({opacity:1,height:"*"}))],{optional:!0}),l.query(".sky-slide-dissolve-last:leave",[l.animate("200ms ease-in",l.style({height:0}))],{optional:!0})])])]);(a=e.SkyInlineFormButtonLayout||(e.SkyInlineFormButtonLayout={}))[a.Custom=0]="Custom",a[a.DoneCancel=1]="DoneCancel",a[a.DoneDeleteCancel=2]="DoneDeleteCancel",a[a.SaveCancel=3]="SaveCancel",a[a.SaveDeleteCancel=4]="SaveDeleteCancel";var y=["a[href]","area[href]","input:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","iframe","object","embed","*[tabindex]:not([tabindex='-1'])","*[contenteditable=true]"].join(", "),f=function(){function e(){}return e.prototype.applyAutofocus=function(e){var t=e.nativeElement.querySelector("[autofocus]");if(t)t.focus();else{var n=e.nativeElement.querySelector(".sky-inline-form-content"),o=this.loadFocusableChildren(n);this.focusFirstElement(o)}},e.prototype.loadFocusableChildren=function(e){var t=this;return Array.prototype.slice.call(e.querySelectorAll(y)).filter((function(e){return t.isVisible(e)}))},e.prototype.isVisible=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},e.prototype.focusFirstElement=function(e){e.length>0&&e[0].focus()},e=u([n.Injectable()],e)}(),p=function(){function t(e,t,o,i,s){this.adapter=e,this.elementRef=t,this.resourcesService=o,this.skyAppWindowRef=i,this.changeDetectorRef=s,this.close=new n.EventEmitter,this._showForm=!1}return Object.defineProperty(t.prototype,"config",{get:function(){return this._config},set:function(e){e!==this._config&&(this._config=e,this.setupButtons())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showForm",{get:function(){return this._showForm},set:function(e){var t=this;this._showForm=e,e&&this.skyAppWindowRef.nativeWindow.setTimeout((function(){t.adapter.applyAutofocus(t.elementRef)}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setupButtons()},t.prototype.ngOnDestroy=function(){this.close.complete()},t.prototype.closeInlineForm=function(e){var t={reason:e.action};this.close.emit(t)},t.prototype.setupButtons=function(){var e=this;if(this.isValidCustomConfig(this.config))return this.buttons=this.getCustomButtons(this.config.buttons),void this.changeDetectorRef.markForCheck();this.getPresetButtons().then((function(t){e.buttons=t,e.changeDetectorRef.markForCheck()}))},t.prototype.getPresetButtons=function(){var t;switch(this.config?this.config.buttonLayout:e.SkyInlineFormButtonLayout.DoneCancel){default:case e.SkyInlineFormButtonLayout.DoneCancel:s.zip(this.resourcesService.getString("skyux_inline_form_button_done"),this.resourcesService.getString("skyux_inline_form_button_cancel")).pipe(r.take(1)).subscribe((function(e){t=new Promise((function(t){t([{text:e[0],styleType:"primary",action:"done"},{text:e[1],styleType:"link",action:"cancel"}])}))}));break;case e.SkyInlineFormButtonLayout.SaveCancel:s.zip(this.resourcesService.getString("skyux_inline_form_button_save"),this.resourcesService.getString("skyux_inline_form_button_cancel")).pipe(r.take(1)).subscribe((function(e){t=new Promise((function(t){t([{text:e[0],styleType:"primary",action:"save"},{text:e[1],styleType:"link",action:"cancel"}])}))}));break;case e.SkyInlineFormButtonLayout.DoneDeleteCancel:s.zip(this.resourcesService.getString("skyux_inline_form_button_done"),this.resourcesService.getString("skyux_inline_form_button_delete"),this.resourcesService.getString("skyux_inline_form_button_cancel")).pipe(r.take(1)).subscribe((function(e){t=new Promise((function(t){t([{text:e[0],styleType:"primary",action:"done"},{text:e[1],styleType:"default",action:"delete"},{text:e[2],styleType:"link",action:"cancel"}])}))}));break;case e.SkyInlineFormButtonLayout.SaveDeleteCancel:s.zip(this.resourcesService.getString("skyux_inline_form_button_save"),this.resourcesService.getString("skyux_inline_form_button_delete"),this.resourcesService.getString("skyux_inline_form_button_cancel")).pipe(r.take(1)).subscribe((function(e){t=new Promise((function(t){t([{text:e[0],styleType:"primary",action:"save"},{text:e[1],styleType:"default",action:"delete"},{text:e[2],styleType:"link",action:"cancel"}])}))}))}return t},t.prototype.getCustomButtons=function(e){var t=[];return e.forEach((function(e){t.push({action:e.action,disabled:e.disabled,styleType:e.styleType||"default",text:e.text})})),t},t.prototype.isValidCustomConfig=function(t){return t&&t.buttonLayout===e.SkyInlineFormButtonLayout.Custom&&t.buttons.length>0},t.ctorParameters=function(){return[{type:f},{type:n.ElementRef},{type:i.SkyLibResourcesService},{type:o.SkyAppWindowRef},{type:n.ChangeDetectorRef}]},u([n.Input()],t.prototype,"config",null),u([n.Input()],t.prototype,"template",void 0),u([n.Input()],t.prototype,"showForm",null),u([n.Output()],t.prototype,"close",void 0),t=u([n.Component({selector:"sky-inline-form",template:'<div\n [@skySlideDissolve]="showForm"\n>\n\n <div *ngIf="!showForm"\n class="sky-slide-dissolve-first"\n >\n <ng-content></ng-content>\n </div>\n\n <div *ngIf="template && showForm"\n class="sky-slide-dissolve-last"\n >\n <div\n class="sky-inline-form sky-shadow sky-box sky-elevation-3"\n >\n <div\n class="sky-inline-form-content"\n >\n <ng-container\n [ngTemplateOutlet]="template"\n >\n </ng-container>\n </div>\n <div\n class="sky-inline-form-footer"\n >\n <button *ngFor="let button of buttons"\n class="sky-btn {{ \'sky-btn-\' + button.styleType }}"\n type="button"\n [disabled]="(button.disabled) ? true : null"\n [ngClass]="{ \'sky-btn-disabled\' : button.disabled }"\n (click)="closeInlineForm(button)"\n >\n {{ button.text }}\n </button>\n </div>\n </div>\n </div>\n\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[f],animations:[c],styles:[".sky-inline-form{background:#eeeeef;border:1px solid #cdcfd2;padding:10px;width:100%}.sky-inline-form .sky-inline-form-footer{margin-top:20px}.sky-inline-form .sky-inline-form-footer button{margin:0 5px 0 0}.sky-theme-modern .sky-inline-form,:host-context(.sky-theme-modern) .sky-inline-form{background-color:#fff;border:none;padding:15px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer{margin-top:30px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer button,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer button{margin-right:10px}.sky-theme-modern.sky-theme-mode-dark .sky-inline-form,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-inline-form{background-color:#232427}"]})],t)}(),m=function(){function e(){}return e=u([n.NgModule({providers:[o.SkyAppWindowRef]})],e)}(),d=function(){function e(){this.resources={"EN-US":{skyux_inline_form_button_cancel:"Cancel",skyux_inline_form_button_delete:"Delete",skyux_inline_form_button_done:"Done",skyux_inline_form_button_save:"Save"}}}return e.prototype.getString=function(e,t){return i.getStringForLocale(this.resources,e.locale,t)},e=u([n.Injectable()],e)}(),k=function(){function e(){}return e=u([n.NgModule({exports:[i.SkyI18nModule],providers:[{provide:i.SKY_LIB_RESOURCES_PROVIDERS,useClass:d,multi:!0}]})],e)}(),h=function(){function e(){}return e=u([n.NgModule({declarations:[p],imports:[t.CommonModule,m,k],exports:[p]})],e)}();e.SkyInlineFormModule=h,e.ɵa=p,e.ɵb=f,e.ɵc=c,e.ɵd=m,e.ɵe=k,e.ɵf=d,Object.defineProperty(e,"__esModule",{value:!0})}));
16
- //# sourceMappingURL=skyux-inline-form.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@skyux/inline-form/modules/inline-form/types/inline-form-button-layout.ts","ng://@skyux/inline-form/modules/inline-form/animations/slide-dissolve.ts","ng://@skyux/inline-form/modules/inline-form/inline-form-adapter.service.ts","ng://@skyux/inline-form/modules/inline-form/inline-form.component.ts","ng://@skyux/inline-form/modules/shared/inline-form-for-root-compat.module.ts","ng://@skyux/inline-form/plugin-resources/inline-form-resources-provider.ts","ng://@skyux/inline-form/modules/shared/inline-form-resources.module.ts","ng://@skyux/inline-form/modules/inline-form/inline-form.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","SkyInlineFormButtonLayout","skySlideDissolve","trigger","transition","query","style","height","opacity","animate","optional","group","SKY_TABBABLE_SELECTOR","join","SkyInlineFormAdapterService","prototype","applyAutofocus","inlineFormElementRef","inputWithAutofocus","nativeElement","querySelector","focus","focusEl","focusableChildren","this","loadFocusableChildren","focusFirstElement","elem","_this","Array","slice","call","querySelectorAll","filter","element","isVisible","window","getComputedStyle","display","visibility","offsetWidth","offsetHeight","getClientRects","list","Injectable","SkyInlineFormComponent","adapter","elementRef","resourcesService","skyAppWindowRef","changeDetectorRef","close","EventEmitter","_showForm","_config","value","setupButtons","nativeWindow","setTimeout","ngOnInit","ngOnDestroy","complete","closeInlineForm","event","args","reason","action","emit","isValidCustomConfig","config","buttons","getCustomButtons","markForCheck","getPresetButtons","then","promise","buttonLayout","DoneCancel","observableZip","getString","pipe","take","subscribe","values","Promise","resolve","text","styleType","SaveCancel","DoneDeleteCancel","SaveDeleteCancel","buttonConfigs","forEach","push","disabled","Custom","ElementRef","SkyLibResourcesService","SkyAppWindowRef","ChangeDetectorRef","Input","Output","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","animations","SkyInlineFormForRootCompatModule","NgModule","SkyInlineFormResourcesProvider","resources","EN-US","skyux_inline_form_button_cancel","skyux_inline_form_button_delete","skyux_inline_form_button_done","skyux_inline_form_button_save","localeInfo","name","getStringForLocale","locale","SkyInlineFormResourcesModule","exports","SkyI18nModule","provide","SKY_LIB_RESOURCES_PROVIDERS","useClass","multi","SkyInlineFormModule","declarations","imports","CommonModule"],"mappings":";;;;;;;;;;;;;;oFAoDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,MCxDpDO,ECUCC,EAA6CC,EAAAA,QAAQ,mBAAoB,CACpFC,EA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iBDnH,EAAA,CADCmH,EAAAA,wCASDnH,EAAA,CADCmH,EAAAA,sCAsBDnH,EAAA,CADCoH,EAAAA,sCAnDUxD,EAAsB5D,EAAA,CAVlCqH,EAAAA,UAAU,CACTC,SAAU,kBACVC,SAAA,y8BAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAW,CACT9F,GAEF+F,WAAY,CAAE3G,qzBAEH2C,mBCjDb,SAAAiE,KAA+C,OAAlCA,EAAgC7H,EAAA,CAL3C8H,EAAAA,SAAS,CACTH,UAAW,CACTV,EAAAA,oBAGSY,mBCLb,SAAAE,IACUxF,KAAAyF,UAAiB,CAACC,QAAQ,CAACC,gCAAkC,SAASC,gCAAkC,SAASC,8BAAgC,OAAOC,8BAAgC,SAKlM,OAHSN,EAAAjG,UAAAgE,UAAP,SAAiBwC,EAA8BC,GAC7C,OAAOC,EAAAA,mBAAmBjG,KAAKyF,UAAWM,EAAWG,OAAQF,IAJpDR,EAA8B/H,EAAA,CAD1C2D,EAAAA,cACYoE,mBCWb,SAAAW,KAA4C,OAA/BA,EAA4B1I,EAAA,CAVxC8H,EAAAA,SAAS,CACRa,QAAS,CACPC,EAAAA,eAEFjB,UAAW,CAAC,CACVkB,QAASC,EAAAA,4BACTC,SAAUhB,EACViB,OAAO,OAGEN,mBCUb,SAAAO,KAAmC,OAAtBA,EAAmBjJ,EAAA,CAb/B8H,EAAAA,SAAS,CACRoB,aAAc,CACZtF,GAEFuF,QAAS,CACPC,EAAAA,aACAvB,EACAa,GAEFC,QAAS,CACP/E,MAGSqF","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","export enum SkyInlineFormButtonLayout {\n Custom = 0,\n DoneCancel = 1,\n DoneDeleteCancel = 2,\n SaveCancel = 3,\n SaveDeleteCancel = 4\n}\n","import {\n animate,\n AnimationTriggerMetadata,\n group,\n query,\n style,\n transition,\n trigger\n} from '@angular/animations';\n\nexport const skySlideDissolve: AnimationTriggerMetadata = trigger('skySlideDissolve', [\n transition('* <=> *', [\n\n // Expand animations\n query('.sky-slide-dissolve-last:enter', [\n style({ height: 0, opacity: 0 }),\n animate('200ms ease-in', style({ height: '*', opacity: 0 }))\n ], { optional: true }),\n query('.sky-slide-dissolve-last:enter', [\n style({ opacity: 0 }),\n animate('200ms ease-in', style({ opacity: 1 }))\n ], { optional: true }),\n\n // Collapse animations\n // The expanded content should fade out immediately to prevent\n // any overlap with the read-only content that's returning to the screen.\n query('.sky-slide-dissolve-last:leave', [\n animate('0ms', style({ opacity: 0 }))\n ], { optional: true }),\n\n group([\n query('.sky-slide-dissolve-first:enter', [\n style({ opacity: 0, height: 0 }),\n animate('100ms ease-in', style({ opacity: 1, height: '*' }))\n ], { optional: true }),\n query('.sky-slide-dissolve-last:leave', [\n animate('200ms ease-in', style({ height: 0 }))\n ], { optional: true })\n\n ])\n ])\n]);\n","import {\n ElementRef,\n Injectable\n} from '@angular/core';\n\n/* tslint:disable */\nconst SKY_TABBABLE_SELECTOR = [\n 'a[href]',\n 'area[href]',\n 'input:not([disabled]):not([tabindex=\\'-1\\'])',\n 'button:not([disabled]):not([tabindex=\\'-1\\'])',\n 'select:not([disabled]):not([tabindex=\\'-1\\'])',\n 'textarea:not([disabled]):not([tabindex=\\'-1\\'])',\n 'iframe',\n 'object',\n 'embed',\n '*[tabindex]:not([tabindex=\\'-1\\'])',\n '*[contenteditable=true]'\n].join(', ');\n/* tslint:enable */\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkyInlineFormAdapterService {\n\n public applyAutofocus(inlineFormElementRef: ElementRef): void {\n const inputWithAutofocus = inlineFormElementRef.nativeElement.querySelector('[autofocus]');\n\n if (inputWithAutofocus) {\n inputWithAutofocus.focus();\n } else {\n let focusEl: HTMLElement = inlineFormElementRef.nativeElement.querySelector('.sky-inline-form-content');\n let focusableChildren = this.loadFocusableChildren(focusEl);\n\n this.focusFirstElement(focusableChildren);\n }\n }\n\n private loadFocusableChildren(elem: HTMLElement): HTMLElement[] {\n const elements: Array<HTMLElement>\n = Array.prototype.slice.call(elem.querySelectorAll(SKY_TABBABLE_SELECTOR));\n\n return elements.filter((element) => {\n return this.isVisible(element);\n });\n }\n\n private isVisible(element: HTMLElement): boolean {\n const style = window.getComputedStyle(element);\n const isHidden = style.display === 'none' || style.visibility === 'hidden';\n if (isHidden) {\n return false;\n }\n\n const hasBounds = !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n return hasBounds;\n }\n\n private focusFirstElement(list: Array<HTMLElement>): void {\n if (list.length > 0) {\n list[0].focus();\n }\n }\n}\n","import {\n ChangeDetectorRef,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef\n} from '@angular/core';\n\nimport {\n SkyAppWindowRef\n} from '@skyux/core';\n\nimport {\n SkyLibResourcesService\n} from '@skyux/i18n';\n\nimport {\n zip as observableZip\n} from 'rxjs';\n\nimport {\n take\n} from 'rxjs/operators';\n\nimport {\n skySlideDissolve\n} from './animations/slide-dissolve';\n\nimport {\n SkyInlineFormButtonConfig\n} from './types/inline-form-button-config';\n\nimport {\n SkyInlineFormButtonLayout\n} from './types/inline-form-button-layout';\n\nimport {\n SkyInlineFormCloseArgs\n} from './types/inline-form-close-args';\n\nimport {\n SkyInlineFormConfig\n} from './types/inline-form-config';\n\nimport {\n SkyInlineFormAdapterService\n} from './inline-form-adapter.service';\n\n/**\n * Renders form content in the current view instead of a separate modal.\n */\n@Component({\n selector: 'sky-inline-form',\n templateUrl: './inline-form.component.html',\n styleUrls: ['./inline-form.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n SkyInlineFormAdapterService\n ],\n animations: [ skySlideDissolve ]\n})\nexport class SkyInlineFormComponent implements OnInit, OnDestroy {\n\n /**\n * Specifies configuration options for the buttons to display with the inline form.\n * @required\n */\n @Input()\n public set config(value: SkyInlineFormConfig) {\n if (value !== this._config) {\n this._config = value;\n this.setupButtons();\n }\n }\n\n public get config(): SkyInlineFormConfig {\n return this._config;\n }\n\n /**\n * Specifies a template to use to instantiate the inline form.\n * @required\n */\n @Input()\n public template: TemplateRef<any>;\n\n /**\n * Indicates whether to display the inline form. Users can toggle between displaying\n * and hiding the inline form.\n * @default false\n */\n @Input()\n public set showForm(value: boolean) {\n this._showForm = value;\n\n /* istanbul ignore else */\n if (value) {\n // setTimeout() prevents applyAutofocus() from firing\n // until after *ngIf has added the form element to the DOM.\n this.skyAppWindowRef.nativeWindow.setTimeout(() => {\n this.adapter.applyAutofocus(this.elementRef);\n });\n }\n }\n\n public get showForm() {\n return this._showForm;\n }\n\n /**\n * Fires when users close the inline form.\n */\n @Output()\n public close = new EventEmitter<SkyInlineFormCloseArgs>();\n\n public buttons: SkyInlineFormButtonConfig[];\n\n private _config: SkyInlineFormConfig;\n\n private _showForm: boolean = false;\n\n constructor(\n private adapter: SkyInlineFormAdapterService,\n private elementRef: ElementRef,\n private resourcesService: SkyLibResourcesService,\n private skyAppWindowRef: SkyAppWindowRef,\n private changeDetectorRef: ChangeDetectorRef\n ) {}\n\n public ngOnInit(): void {\n this.setupButtons();\n }\n\n public ngOnDestroy(): void {\n this.close.complete();\n }\n\n public closeInlineForm(event: SkyInlineFormButtonConfig): void {\n const args: SkyInlineFormCloseArgs = {\n reason: event.action\n };\n this.close.emit(args);\n }\n\n private setupButtons(): void {\n if (this.isValidCustomConfig(this.config)) {\n this.buttons = this.getCustomButtons(this.config.buttons);\n this.changeDetectorRef.markForCheck();\n return;\n }\n\n this.getPresetButtons().then((buttons) => {\n this.buttons = buttons;\n this.changeDetectorRef.markForCheck();\n });\n }\n\n private getPresetButtons(): Promise<SkyInlineFormButtonConfig[]> {\n let buttonType =\n this.config ? this.config.buttonLayout : SkyInlineFormButtonLayout.DoneCancel;\n\n let promise: Promise<SkyInlineFormButtonConfig[]>;\n\n switch (buttonType) {\n /* istanbul ignore next */\n default:\n case SkyInlineFormButtonLayout.DoneCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_done'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'done'\n },\n {\n text: values[1],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.SaveCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_save'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'save'\n },\n {\n text: values[1],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.DoneDeleteCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_done'),\n this.resourcesService.getString('skyux_inline_form_button_delete'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'done'\n },\n {\n text: values[1],\n styleType: 'default',\n action: 'delete'\n },\n {\n text: values[2],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.SaveDeleteCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_save'),\n this.resourcesService.getString('skyux_inline_form_button_delete'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'save'\n },\n {\n text: values[1],\n styleType: 'default',\n action: 'delete'\n },\n {\n text: values[2],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n }\n\n return promise;\n }\n\n private getCustomButtons(buttonConfigs: SkyInlineFormButtonConfig[]): SkyInlineFormButtonConfig[] {\n const buttons: SkyInlineFormButtonConfig[] = [];\n\n buttonConfigs.forEach((config: SkyInlineFormButtonConfig) => {\n buttons.push({\n action: config.action,\n disabled: config.disabled,\n styleType: config.styleType || 'default',\n text: config.text\n } as SkyInlineFormButtonConfig);\n });\n\n return buttons;\n }\n\n private isValidCustomConfig(config: SkyInlineFormConfig): boolean {\n return (\n config &&\n config.buttonLayout === SkyInlineFormButtonLayout.Custom &&\n config.buttons.length > 0\n );\n }\n\n}\n","import {\n NgModule\n} from '@angular/core';\n\nimport {\n SkyAppWindowRef\n} from '@skyux/core';\n\n/**\n * @internal\n * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.\n */\n @NgModule({\n providers: [\n SkyAppWindowRef\n ]\n})\nexport class SkyInlineFormForRootCompatModule {}\n","\nimport {\n Injectable\n} from '@angular/core';\n\nimport {\n getStringForLocale,\n SkyAppLocaleInfo,\n SkyLibResourcesProvider\n} from '@skyux/i18n';\n\n@Injectable()\nexport class SkyInlineFormResourcesProvider implements SkyLibResourcesProvider {\n private resources: any = {\"EN-US\":{\"skyux_inline_form_button_cancel\":\"Cancel\",\"skyux_inline_form_button_delete\":\"Delete\",\"skyux_inline_form_button_done\":\"Done\",\"skyux_inline_form_button_save\":\"Save\"}};\n\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getStringForLocale(this.resources, localeInfo.locale, name);\n }\n}\n","import {\n NgModule\n} from '@angular/core';\n\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyI18nModule\n} from '@skyux/i18n';\n\nimport {\n SkyInlineFormResourcesProvider\n} from '../../plugin-resources/inline-form-resources-provider';\n\n@NgModule({\n exports: [\n SkyI18nModule\n ],\n providers: [{\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyInlineFormResourcesProvider,\n multi: true\n }]\n})\nexport class SkyInlineFormResourcesModule { }\n","import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n SkyInlineFormComponent\n} from './inline-form.component';\n\nimport {\n SkyInlineFormForRootCompatModule\n} from '../shared/inline-form-for-root-compat.module';\n\nimport {\n SkyInlineFormResourcesModule\n} from '../shared/inline-form-resources.module';\n\n@NgModule({\n declarations: [\n SkyInlineFormComponent\n ],\n imports: [\n CommonModule,\n SkyInlineFormForRootCompatModule,\n SkyInlineFormResourcesModule\n ],\n exports: [\n SkyInlineFormComponent\n ]\n})\nexport class SkyInlineFormModule { }\n"]}
@@ -1,18 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { NgModule } from '@angular/core';
3
- import { SkyAppWindowRef } from '@skyux/core';
4
- /**
5
- * @internal
6
- * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.
7
- */
8
- let SkyInlineFormForRootCompatModule = class SkyInlineFormForRootCompatModule {
9
- };
10
- SkyInlineFormForRootCompatModule = __decorate([
11
- NgModule({
12
- providers: [
13
- SkyAppWindowRef
14
- ]
15
- })
16
- ], SkyInlineFormForRootCompatModule);
17
- export { SkyInlineFormForRootCompatModule };
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWZvcm0tZm9yLXJvb3QtY29tcGF0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bza3l1eC9pbmxpbmUtZm9ybS8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvc2hhcmVkL2lubGluZS1mb3JtLWZvci1yb290LWNvbXBhdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFDTCxRQUFRLEVBQ1QsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUNMLGVBQWUsRUFDaEIsTUFBTSxhQUFhLENBQUM7QUFFckI7OztHQUdHO0FBTUgsSUFBYSxnQ0FBZ0MsR0FBN0MsTUFBYSxnQ0FBZ0M7Q0FBRyxDQUFBO0FBQW5DLGdDQUFnQztJQUwzQyxRQUFRLENBQUM7UUFDVCxTQUFTLEVBQUU7WUFDVCxlQUFlO1NBQ2hCO0tBQ0YsQ0FBQztHQUNXLGdDQUFnQyxDQUFHO1NBQW5DLGdDQUFnQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIE5nTW9kdWxlXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge1xuICBTa3lBcHBXaW5kb3dSZWZcbn0gZnJvbSAnQHNreXV4L2NvcmUnO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICogQGRlcHJlY2F0ZWQgVGhpcyBtb2R1bGUgY2FuIGJlIHJlbW92ZWQgYWZ0ZXIgd2UgdXBncmFkZSBTS1kgVVggZGV2ZWxvcG1lbnQgZGVwZW5kZW5jaWVzIHRvIHZlcnNpb24gNS5cbiAqL1xuIEBOZ01vZHVsZSh7XG4gIHByb3ZpZGVyczogW1xuICAgIFNreUFwcFdpbmRvd1JlZlxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFNreUlubGluZUZvcm1Gb3JSb290Q29tcGF0TW9kdWxlIHt9XG4iXX0=
@@ -1,20 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { NgModule } from '@angular/core';
3
- import { SKY_LIB_RESOURCES_PROVIDERS, SkyI18nModule } from '@skyux/i18n';
4
- import { SkyInlineFormResourcesProvider } from '../../plugin-resources/inline-form-resources-provider';
5
- let SkyInlineFormResourcesModule = class SkyInlineFormResourcesModule {
6
- };
7
- SkyInlineFormResourcesModule = __decorate([
8
- NgModule({
9
- exports: [
10
- SkyI18nModule
11
- ],
12
- providers: [{
13
- provide: SKY_LIB_RESOURCES_PROVIDERS,
14
- useClass: SkyInlineFormResourcesProvider,
15
- multi: true
16
- }]
17
- })
18
- ], SkyInlineFormResourcesModule);
19
- export { SkyInlineFormResourcesModule };
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWZvcm0tcmVzb3VyY2VzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bza3l1eC9pbmxpbm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uICBwcm92aWRlcnM6IFt7XG4gICAgcHJvdmlkZTogU0tZX0xJQl9SRVNPVVJDRVNfUFJPVklERVJTLFxuICAgIHVzZUNsYXNzOiBTa3lJbmxpbmVGb3JtUmVzb3VyY2VzUHJvdmlkZXIsXG4gICAgbXVsdGk6IHRydWVcbiAgfV1cbn0pXG5leHBvcnQgY2xhc3MgU2t5SW5saW5lRm9ybVJlc291cmNlc01vZHVsZSB7IH1cbiJdfQ==
@@ -1,16 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Injectable } from '@angular/core';
3
- import { getStringForLocale } from '@skyux/i18n';
4
- let SkyInlineFormResourcesProvider = class SkyInlineFormResourcesProvider {
5
- constructor() {
6
- this.resources = { "EN-US": { "skyux_inline_form_button_cancel": "Cancel", "skyux_inline_form_button_delete": "Delete", "skyux_inline_form_button_done": "Done", "skyux_inline_form_button_save": "Save" } };
7
- }
8
- getString(localeInfo, name) {
9
- return getStringForLocale(this.resources, localeInfo.locale, name);
10
- }
11
- };
12
- SkyInlineFormResourcesProvider = __decorate([
13
- Injectable()
14
- ], SkyInlineFormResourcesProvider);
15
- export { SkyInlineFormResourcesProvider };
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWZvcm0tcmVzb3VyY2VzLXByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHNreXV4L2lubGluZS1mb3JtLyIsInNvdXJjZXMiOlsicGx1Z2luLXJlc291cmNlcy9pbmxpbmUtZm9ybS1yZXNvdXJjZXMtcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFDTCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUNMLGtCQUFrQixFQUduQixNQUFNLGFBQWEsQ0FBQztBQUdyQixJQUFhLDhCQUE4QixHQUEzQyxNQUFhLDhCQUE4QjtJQUEzQztRQUNVLGNBQ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VwiOlwiU2F2ZVwifX07XG5cbiAgcHVibGljIGdldFN0cmluZyhsb2NhbGVJbmZvOiBTa3lBcHBMb2NhbGVJbmZvLCBuYW1lOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHJldHVybiBnZXRTdHJpbmdGb3JMb2NhbGUodGhpcy5yZXNvdXJjZXMsIGxvY2FsZUluZm8ubG9jYWxlLCBuYW1lKTtcbiAgfVxufVxuIl19
@@ -1,3 +0,0 @@
1
- export * from './modules/inline-form/inline-form.module';
2
- export * from './modules/inline-form/types/inline-form-button-layout';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bza3l1eC9pbmxpbmUtZm9ybS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQ0FBMEMsQ0FBQztBQUt6RCxjQUFjLHVEQUF1RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tb2R1bGVzL2lubGluZS1mb3JtL2lubGluZS1mb3JtLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL21vZHVsZXMvaW5saW5lLWZvcm0vdHlwZXMvaW5saW5lLWZvcm0tYnV0dG9uLWFjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL21vZHVsZXMvaW5saW5lLWZvcm0vdHlwZXMvaW5saW5lLWZvcm0tYnV0dG9uLWNvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL21vZHVsZXMvaW5saW5lLWZvcm0vdHlwZXMvaW5saW5lLWZvcm0tY2xvc2UtYXJncyc7XG5leHBvcnQgKiBmcm9tICcuL21vZHVsZXMvaW5saW5lLWZvcm0vdHlwZXMvaW5saW5lLWZvcm0tY29uZmlnJztcbmV4cG9ydCAqIGZyb20gJy4vbW9kdWxlcy9pbmxpbmUtZm9ybS90eXBlcy9pbmxpbmUtZm9ybS1idXR0b24tbGF5b3V0JztcbiJdfQ==
@@ -1,30 +0,0 @@
1
- import { animate, group, query, style, transition, trigger } from '@angular/animations';
2
- export var skySlideDissolve = trigger('skySlideDissolve', [
3
- transition('* <=> *', [
4
- // Expand animations
5
- query('.sky-slide-dissolve-last:enter', [
6
- style({ height: 0, opacity: 0 }),
7
- animate('200ms ease-in', style({ height: '*', opacity: 0 }))
8
- ], { optional: true }),
9
- query('.sky-slide-dissolve-last:enter', [
10
- style({ opacity: 0 }),
11
- animate('200ms ease-in', style({ opacity: 1 }))
12
- ], { optional: true }),
13
- // Collapse animations
14
- // The expanded content should fade out immediately to prevent
15
- // any overlap with the read-only content that's returning to the screen.
16
- query('.sky-slide-dissolve-last:leave', [
17
- animate('0ms', style({ opacity: 0 }))
18
- ], { optional: true }),
19
- group([
20
- query('.sky-slide-dissolve-first:enter', [
21
- style({ opacity: 0, height: 0 }),
22
- animate('100ms ease-in', style({ opacity: 1, height: '*' }))
23
- ], { optional: true }),
24
- query('.sky-slide-dissolve-last:leave', [
25
- animate('200ms ease-in', style({ height: 0 }))
26
- ], { optional: true })
27
- ])
28
- ])
29
- ]);
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUtZGlzc29sdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2t5dXgvaW5saW5lLWZvcm0vIiwic291cmNlcyI6WyJtb2R1bGVzL2lubGluZS1mb3JtL2FuaW1hdGlvbnMvc2xpZGUtZGlzc29sdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFFUCxLQUFLLEVBQ0wsS0FBSyxFQUNMLEtBQUssRUFDTCxVQUFVLEVBQ1YsT0FBTyxFQUNSLE1BQU0scUJBQXFCLENBQUM7QUFFN0IsTUFBTSxDQUFDLElBQU0sZ0JBQWdCLEdBQTZCLE9BQU8sQ0F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==
@@ -1,64 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { Injectable } from '@angular/core';
3
- /* tslint:disable */
4
- var SKY_TABBABLE_SELECTOR = [
5
- 'a[href]',
6
- 'area[href]',
7
- 'input:not([disabled]):not([tabindex=\'-1\'])',
8
- 'button:not([disabled]):not([tabindex=\'-1\'])',
9
- 'select:not([disabled]):not([tabindex=\'-1\'])',
10
- 'textarea:not([disabled]):not([tabindex=\'-1\'])',
11
- 'iframe',
12
- 'object',
13
- 'embed',
14
- '*[tabindex]:not([tabindex=\'-1\'])',
15
- '*[contenteditable=true]'
16
- ].join(', ');
17
- /* tslint:enable */
18
- /**
19
- * @internal
20
- */
21
- var SkyInlineFormAdapterService = /** @class */ (function () {
22
- function SkyInlineFormAdapterService() {
23
- }
24
- SkyInlineFormAdapterService.prototype.applyAutofocus = function (inlineFormElementRef) {
25
- var inputWithAutofocus = inlineFormElementRef.nativeElement.querySelector('[autofocus]');
26
- if (inputWithAutofocus) {
27
- inputWithAutofocus.focus();
28
- }
29
- else {
30
- var focusEl = inlineFormElementRef.nativeElement.querySelector('.sky-inline-form-content');
31
- var focusableChildren = this.loadFocusableChildren(focusEl);
32
- this.focusFirstElement(focusableChildren);
33
- }
34
- };
35
- SkyInlineFormAdapterService.prototype.loadFocusableChildren = function (elem) {
36
- var _this = this;
37
- var elements = Array.prototype.slice.call(elem.querySelectorAll(SKY_TABBABLE_SELECTOR));
38
- return elements.filter(function (element) {
39
- return _this.isVisible(element);
40
- });
41
- };
42
- SkyInlineFormAdapterService.prototype.isVisible = function (element) {
43
- var style = window.getComputedStyle(element);
44
- var isHidden = style.display === 'none' || style.visibility === 'hidden';
45
- if (isHidden) {
46
- return false;
47
- }
48
- var hasBounds = !!(element.offsetWidth ||
49
- element.offsetHeight ||
50
- element.getClientRects().length);
51
- return hasBounds;
52
- };
53
- SkyInlineFormAdapterService.prototype.focusFirstElement = function (list) {
54
- if (list.length > 0) {
55
- list[0].focus();
56
- }
57
- };
58
- SkyInlineFormAdapterService = __decorate([
59
- Injectable()
60
- ], SkyInlineFormAdapterService);
61
- return SkyInlineFormAdapterService;
62
- }());
63
- export { SkyInlineFormAdapterService };
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWZvcm0tYWRhcHRlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHNreXV4L2lubGluZS1mb3JtLyIsInNvdXJjZXMiOlsibW9kdWxlcy9pbmxpbmUtZm9ybS9pbmxpbmUtZm9ybS1hZGFwdGVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFFTCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFFdkIsb0JBQW9CO0FBQ3BCLElBQU0scUJBQXFCLEdBQUc7SUFDNUIsU0FBUztJQUNULFlBQVk7SUFDWiw4Q0FBOEM7SUFDOUMsK0NBQStDO0lBQy9DLCtDQUErQztJQUMvQyxpREFBaUQ7SUFDakQsUUFBUTtJQUNSLFFBQVE7SUFDUixPQUFPO0lBQ1Asb0NBQW9DO0lBQ3BDLHlCQUF5QjtDQUMxQixDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNiLG1CQUFtQjtBQUVuQjs7R0FFRztBQUVIO0lBQUE7SUE0Q0EsQ0FBQztJQTFDUSxvREFBYyxHQUFyQixVQUFzQixvQkFBZ0M7UUFDcEQsSUFBTSxrQkFBa0IsR0FBRyxvQkFBb0IsQ0FBQyxhQUFhLENBQUMsYUFBYSxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBRTNGLElBQUksa0JBQWtCLEVBQUU7WUFDdEIsa0JBQWtCLENBQUMsS0FBSyxFQUFFLENBQUM7U0FDNUI7YUFBTTtZQUNMLElBQUksT0FBTyxHQUFnQixvQkFBb0IsQ0FBQyxhQUFhLENBQUMsYUFBYSxDQUFDLDBCQUEwQixDQUFDLENBQU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