@wavemaker/app-ng-runtime 12.0.0-next.45055 → 12.0.0-next.45058

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +2 -0
  2. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +3 -0
  3. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +5 -2
  4. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +4 -1
  5. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  6. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +19 -2
  7. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +3 -2
  8. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +20 -3
  9. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +19 -2
  10. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  11. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +6 -2
  12. app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +9 -5
  13. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +8 -4
  14. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  15. app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
  16. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -2
  17. app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +9 -5
  18. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +8 -4
  19. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  20. app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
  21. app-ng-runtime/core/bundles/index.umd.js +12 -0
  22. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  23. app-ng-runtime/core/esm2022/utils/utils.mjs +9 -1
  24. app-ng-runtime/core/fesm2022/index.mjs +11 -1
  25. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  26. app-ng-runtime/core/public_api.d.ts +1 -1
  27. app-ng-runtime/core/utils/utils.d.ts +2 -0
  28. app-ng-runtime/package.json +1 -1
  29. app-ng-runtime/runtime/base/bundles/index.umd.js +9 -5
  30. app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +2 -1
  31. app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +9 -7
  32. app-ng-runtime/runtime/base/esm2022/public_api.mjs +1 -1
  33. app-ng-runtime/runtime/base/esm2022/types/types.mjs +3 -1
  34. app-ng-runtime/runtime/base/fesm2022/index.mjs +9 -6
  35. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  36. app-ng-runtime/runtime/base/types/types.d.ts +3 -0
  37. app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
  38. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +22 -4
  39. app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +4 -2
  40. app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
  41. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +25 -5
  42. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  43. app-ng-runtime/scripts/custom-widgets-m3/src/checkbox_set/checkbox_set.d.ts +0 -0
  44. app-ng-runtime/scripts/custom-widgets-m3/src/checkbox_set/checkbox_set.js +38 -0
  45. app-ng-runtime/scripts/custom-widgets-m3/src/checkbox_set/page.min.d.ts +7 -0
  46. app-ng-runtime/scripts/custom-widgets-m3/src/checkbox_set/page.min.js +7 -0
  47. app-ng-runtime/scripts/custom-widgets-m3/src/discrete_slider/discrete_slider.d.ts +10 -0
  48. app-ng-runtime/scripts/custom-widgets-m3/src/discrete_slider/discrete_slider.js +171 -0
  49. app-ng-runtime/scripts/custom-widgets-m3/src/discrete_slider/page.min.d.ts +7 -0
  50. app-ng-runtime/scripts/custom-widgets-m3/src/discrete_slider/page.min.js +7 -0
  51. app-ng-runtime/scripts/custom-widgets-m3/src/divider/divider.d.ts +0 -0
  52. app-ng-runtime/scripts/custom-widgets-m3/src/divider/divider.js +28 -0
  53. app-ng-runtime/scripts/custom-widgets-m3/src/divider/page.min.d.ts +7 -0
  54. app-ng-runtime/scripts/custom-widgets-m3/src/divider/page.min.js +7 -0
  55. app-ng-runtime/scripts/custom-widgets-m3/src/icon_button/icon_button.d.ts +0 -0
  56. app-ng-runtime/scripts/custom-widgets-m3/src/icon_button/icon_button.js +24 -0
  57. app-ng-runtime/scripts/custom-widgets-m3/src/icon_button/page.min.d.ts +7 -0
  58. app-ng-runtime/scripts/custom-widgets-m3/src/icon_button/page.min.js +7 -0
  59. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/input_chip.d.ts +0 -0
  60. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/input_chip.js +34 -0
  61. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/input_chip.variables.d.ts +0 -0
  62. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/input_chip.variables.js +1 -0
  63. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/page.min.d.ts +7 -0
  64. app-ng-runtime/scripts/custom-widgets-m3/src/input_chip/page.min.js +7 -0
  65. app-ng-runtime/scripts/custom-widgets-m3/src/payee_list/page.min.d.ts +7 -0
  66. app-ng-runtime/scripts/custom-widgets-m3/src/payee_list/page.min.js +7 -0
  67. app-ng-runtime/scripts/custom-widgets-m3/src/payee_list/payee_list.d.ts +0 -0
  68. app-ng-runtime/scripts/custom-widgets-m3/src/payee_list/payee_list.js +19 -0
  69. app-ng-runtime/scripts/custom-widgets-m3/src/progressbar/page.min.d.ts +7 -0
  70. app-ng-runtime/scripts/custom-widgets-m3/src/progressbar/page.min.js +7 -0
  71. app-ng-runtime/scripts/custom-widgets-m3/src/progressbar/progressbar.d.ts +0 -0
  72. app-ng-runtime/scripts/custom-widgets-m3/src/progressbar/progressbar.js +52 -0
  73. app-ng-runtime/scripts/custom-widgets-m3/src/radio_set/page.min.d.ts +7 -0
  74. app-ng-runtime/scripts/custom-widgets-m3/src/radio_set/page.min.js +7 -0
  75. app-ng-runtime/scripts/custom-widgets-m3/src/radio_set/radio_set.d.ts +0 -0
  76. app-ng-runtime/scripts/custom-widgets-m3/src/radio_set/radio_set.js +35 -0
  77. app-ng-runtime/scripts/custom-widgets-m3/src/slider/page.min.d.ts +7 -0
  78. app-ng-runtime/scripts/custom-widgets-m3/src/slider/page.min.js +7 -0
  79. app-ng-runtime/scripts/custom-widgets-m3/src/slider/slider.d.ts +11 -0
  80. app-ng-runtime/scripts/custom-widgets-m3/src/slider/slider.js +121 -0
  81. app-ng-runtime/scripts/custom-widgets-m3/src/switch_button/page.min.d.ts +7 -0
  82. app-ng-runtime/scripts/custom-widgets-m3/src/switch_button/page.min.js +7 -0
  83. app-ng-runtime/scripts/custom-widgets-m3/src/switch_button/switch_button.d.ts +0 -0
  84. app-ng-runtime/scripts/custom-widgets-m3/src/switch_button/switch_button.js +33 -0
  85. app-ng-runtime/scripts/custom-widgets-m3/src/textfield/page.min.d.ts +7 -0
  86. app-ng-runtime/scripts/custom-widgets-m3/src/textfield/page.min.js +7 -0
  87. app-ng-runtime/scripts/custom-widgets-m3/src/textfield/textfield.d.ts +4 -0
  88. app-ng-runtime/scripts/custom-widgets-m3/src/textfield/textfield.js +65 -0
  89. app-ng-runtime/scripts/custom-widgets-m3/src/widget-registry.d.ts +6 -0
  90. app-ng-runtime/scripts/custom-widgets-m3/src/widget-registry.js +68 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, ...PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n isDialogComponent: boolean = true;\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Self() @Inject(Context) contexts: Array<any>,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: toBoolean(closable) ? true : !toBoolean(modal)\n\n },\n explicitContext\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n *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,iBAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACvB5B,MAAM,UAAU,GAAG;IACf,eAAe;CAClB,CAAC;MAYW,kBAAkB,CAAA;mFAAlB,kBAAkB,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAlB,kBAAkB,EAAA,CAAA,CAAA,EAAA;uEARvB,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,kBAAkB,EAAA,CAAA;cAV9B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVnB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, ...PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n isDialogComponent: boolean = true;\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Attribute('sheet') sheet: string | boolean,\n @Attribute('sheetposition') sheetPosition: string,\n @Self() @Inject(Context) contexts: Array<any>,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: toBoolean(closable) ? true : !toBoolean(modal)\n\n },\n explicitContext\n );\n\n // adding props to render dialog as sheet\n this.sheet = sheet;\n this.sheetPosition = sheetPosition;\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n\n protected onPropertyChange(key: string, nv: any, ov?: any): void {\n if(key === 'sheet') {\n this.sheet = nv;\n }\n if(key === 'sheetposition') {\n this.sheetPosition = nv;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QAC5C,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CAAC;QACtD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QACzC,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QAC9C,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QACxC,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,aAAa,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC5B,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;;;;;;ICxBG,EAUO,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;;;AADF,IATe,EAAqB,CAAA,UAAA,CAAA,UAAA,EAAA,M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AAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVnB;;AAEG;;;;"}
@@ -182,7 +182,7 @@
182
182
  class LeftPanelDirective extends base.StylableComponent {
183
183
  static { this.initializeProps = registerProps(); }
184
184
  //If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
185
- constructor(app, page, layout, inj, router, explicitContext) {
185
+ constructor(app, page, layout, inj, router, explicitContext, navtype) {
186
186
  super(inj, WIDGET_CONFIG, explicitContext);
187
187
  this.app = app;
188
188
  this.page = page;
@@ -203,6 +203,7 @@
203
203
  }
204
204
  });
205
205
  this.registerDestroyListener(() => onRouteChange.unsubscribe());
206
+ navtype && this.$element.addClass(i1.getNavClass(navtype));
206
207
  }
207
208
  collapse() {
208
209
  i1.addClass(this.nativeElement, 'swipee-transition');
@@ -354,7 +355,7 @@
354
355
  }
355
356
  });
356
357
  }
357
- static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective, 8), i0__namespace.ɵɵdirectiveInject(i2__namespace.LayoutDirective, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i3__namespace.Router), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
358
+ static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective, 8), i0__namespace.ɵɵdirectiveInject(i2__namespace.LayoutDirective, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i3__namespace.Router), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinjectAttribute('nav-type')); }; }
358
359
  static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0__namespace.ɵɵProvidersFeature([
359
360
  base.provideAsWidgetRef(LeftPanelDirective)
360
361
  ]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
@@ -377,6 +378,9 @@
377
378
  args: ['EXPLICIT_CONTEXT']
378
379
  }, {
379
380
  type: i0.Optional
381
+ }] }, { type: undefined, decorators: [{
382
+ type: i0.Attribute,
383
+ args: ['nav-type']
380
384
  }] }], null); })();
381
385
 
382
386
  const components = [
@@ -1,6 +1,6 @@
1
- import { Directive, Inject, Injector, Optional } from '@angular/core';
1
+ import { Attribute, Directive, Inject, Injector, Optional } from '@angular/core';
2
2
  import { NavigationStart, Router } from '@angular/router';
3
- import { App, addClass, removeClass, switchClass, toggleClass, isMobile } from '@wm/core';
3
+ import { App, addClass, removeClass, switchClass, toggleClass, isMobile, getNavClass } from '@wm/core';
4
4
  import { APPLY_STYLES_TYPE, getKeyboardFocusableElements, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
5
5
  import { LayoutDirective, PageDirective } from '@wm/components/page';
6
6
  import { registerProps } from './left-panel.props';
@@ -22,7 +22,7 @@ export var AnimationType;
22
22
  export class LeftPanelDirective extends StylableComponent {
23
23
  static { this.initializeProps = registerProps(); }
24
24
  //If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
25
- constructor(app, page, layout, inj, router, explicitContext) {
25
+ constructor(app, page, layout, inj, router, explicitContext, navtype) {
26
26
  super(inj, WIDGET_CONFIG, explicitContext);
27
27
  this.app = app;
28
28
  this.page = page;
@@ -43,6 +43,7 @@ export class LeftPanelDirective extends StylableComponent {
43
43
  }
44
44
  });
45
45
  this.registerDestroyListener(() => onRouteChange.unsubscribe());
46
+ navtype && this.$element.addClass(getNavClass(navtype));
46
47
  }
47
48
  collapse() {
48
49
  addClass(this.nativeElement, 'swipee-transition');
@@ -194,7 +195,7 @@ export class LeftPanelDirective extends StylableComponent {
194
195
  }
195
196
  });
196
197
  }
197
- static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
198
+ static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
198
199
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0.ɵɵProvidersFeature([
199
200
  provideAsWidgetRef(LeftPanelDirective)
200
201
  ]), i0.ɵɵInheritDefinitionFeature] }); }
@@ -217,5 +218,8 @@ export class LeftPanelDirective extends StylableComponent {
217
218
  args: ['EXPLICIT_CONTEXT']
218
219
  }, {
219
220
  type: Optional
221
+ }] }, { type: undefined, decorators: [{
222
+ type: Attribute,
223
+ args: ['nav-type']
220
224
  }] }], null); })();
221
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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lbnQpID0+IHtcbiAgICAgICAgICAgIGlmIChldmVudC5rZXkgPT09ICdFc2NhcGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2xsYXBzZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNHZXN0dXJlc0VuYWJsZWQoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmdlc3R1cmVzID09PSAnb24nO1xuICAgIH1cblxuICAgIHB1YmxpYyBpc1Zpc2libGUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmV4cGFuZGVkO1xuICAgIH1cblxuICAgIHB1YmxpYyBvblByb3BlcnR5Q2hhbmdlKGtleSwgbnYsIG92KSB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdhbmltYXRpb24nIDpcbiAgICAgICAgICAgICAgICBpZiAobnYgPT09IEFuaW1hdGlvblR5cGUuU0xJREVfSU4pIHtcbiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLW92ZXItbGVmdC1wYW5lbC1jb250YWluZXInKTtcbiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLWluLWxlZnQtcGFuZWwtY29udGFpbmVyJyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCB0aGlzLmNvbHVtbndpZHRoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRQYWdlV2lkdGhBbmRQb3NpdGlvbihbJ3hzJ10sIHRoaXMueHNjb2x1bW53aWR0aCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChudiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9PVkVSKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJHBhZ2VbMF0sICdzbGlkZS1pbi1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLiRwYWdlWzBdLCAnc2xpZGUtb3Zlci1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9sZWZ0UGFuZWxBbmltYXRvciA9IG5ldyBMZWZ0UGFuZWxBbmltYXRvcih0aGlzKTtcbiAgICAgICAgICAgICAgICBzd2l0Y2hDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIG52LCBvdik7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdjb2x1bW53aWR0aCc6XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRMZWZ0UGFuZWxXaWR0aChbJ21kJywgJ3NtJ10sIG52LCBvdik7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYW5pbWF0aW9uID09PSBBbmltYXRpb25UeXBlLlNMSURFX0lOKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ2V4cGFuZGVkJzpcbiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsICdsZWZ0LXBhbmVsLWV4cGFuZGVkJywgbnYpO1xuICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgJ2xlZnQtcGFuZWwtY29sbGFwc2VkJywgIW52KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3hzY29sdW1ud2lkdGgnOlxuICAgICAgICAgICAgICAgIHRoaXMuc2V0TGVmdFBhbmVsV2lkdGgoWyd4cyddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9JTikge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFBhZ2VXaWR0aEFuZFBvc2l0aW9uKFsneHMnXSwgbnYsIG92KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHN1cGVyLm9uUHJvcGVydHlDaGFuZ2Uoa2V5LCBudiwgb3YpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljICB0b2dnbGUoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmFwcC5pc1RhYmxldEFwcGxpY2F0aW9uVHlwZSkge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBhbmRlZCA/IHRoaXMuY29sbGFwc2UoKSA6IHRoaXMuZXhwYW5kKCk7XG4gICAgICAgICAgICB9LCA1MCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLiRlbGUuc3dpcGVBbmltYXRpb24odGhpcy5leHBhbmRlZCA/ICdnb3RvTG93ZXInIDogJ2dvdG9VcHBlcicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBsaXN0ZW5Gb3JDb2xsYXBzZUFjdGlvbigpOiAoKSA9PiB2b2lkIHtcbiAgICAgICAgY29uc3QgZXZlbnROYW1lID0gJ2NsaWNrLmxlZnROYXZUb2dnbGUnO1xuICAgICAgICBsZXQgc2tpcEV2ZW50ID0gZmFsc2U7XG4gICAgICAgIHRoaXMuJGVsZS5vbihldmVudE5hbWUsICgpID0+IHtcbiAgICAgICAgICAgIHNraXBFdmVudCA9IHRydWU7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLiRwYWdlLm9uKGV2ZW50TmFtZSwgKCkgPT4gIHtcbiAgICAgICAgICAgIGlmICghc2tpcEV2ZW50KSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNraXBFdmVudCA9IGZhbHNlO1xuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuJGVsZS5vZmYoZXZlbnROYW1lKTtcbiAgICAgICAgICAgIHRoaXMuJHBhZ2Uub2ZmKGV2ZW50TmFtZSk7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzZXRMZWZ0UGFuZWxXaWR0aChkZXZpY2VzOiBzdHJpbmdbXSwgbmV3VmFsOiBudW1iZXIsIG9sZFZhbD86IG51bWJlcikge1xuICAgICAgICBkZXZpY2VzLmZvckVhY2goZGV2aWNlID0+IHtcbiAgICAgICAgICAgIGlmIChuZXdWYWwpIHtcbiAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIGBjb2wtJHtkZXZpY2V9LSR7bmV3VmFsfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG9sZFZhbCkge1xuICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgYGNvbC0ke2RldmljZX0tJHtvbGRWYWx9YCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oZGV2aWNlczogc3RyaW5nW10sIG5ld1ZhbDogbnVtYmVyLCBvbGRWYWw/OiBudW1iZXIpIHtcbiAgICAgICAgZGV2aWNlcy5mb3JFYWNoKGRldmljZSA9PiB7XG4gICAgICAgICAgICBpZiAobmV3VmFsKSB7XG4gICAgICAgICAgICAgIC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N0IGxhc3RGb2N1c2FibGVFbGVtZW50ID0gZm9jdXNhYmxlRWxlbWVudHNbZm9jdXNhYmxlRWxlbWVudHMubGVuZ3RoIC0gMV07XG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgJChmaXJzdEZvY3VzYWJsZUVsZW1lbnQpLmZvY3VzKCk7XG4gICAgICAgIH0sIDUwKTtcbiAgICAgICAgJChmaXJzdEZvY3VzYWJsZUVsZW1lbnQpLm9uKCdrZXlkb3duJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBpZiAoZXZlbnQuc2hpZnRLZXkgJiYgZXZlbnQua2V5ID09PSAnVGFiJykge1xuICAgICAgICAgICAgICAgIHRoaXMuY29sbGFwc2UoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgICQobGFzdEZvY3VzYWJsZUVsZW1lbnQpLm9uKCdrZXlkb3duJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBpZiAoZXZlbnQua2V5ID09PSAnVGFiJykge1xuICAgICAgICAgICAgICAgIHRoaXMuY29sbGFwc2UoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHRoaXMuJGVsZW1lbnQub24oJ2tleWRvd24nLCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgIGlmIChldmVudC5rZXkgPT09ICdFc2NhcGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2xsYXBzZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNHZXN0dXJlc0VuYWJsZWQoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmdlc3R1cmVzID09PSAnb24nO1xuICAgIH1cblxuICAgIHB1YmxpYyBpc1Zpc2libGUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmV4cGFuZGVkO1xuICAgIH1cblxuICAgIHB1YmxpY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7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdjb2x1bW53aWR0aCc6XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRMZWZ0UGFuZWxXaWR0aChbJ21kJywgJ3NtJ10sIG52LCBvdik7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYW5pbWF0aW9uID09PSBBbmltYXRpb25UeXBlLlNMSURFX0lOKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ2V4cGFuZGVkJzpcbiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsICdsZWZ0LXBhbmVsLWV4cGFuZGVkJywgbnYpO1xuICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgJ2xlZnQtcGFuZWwtY29sbGFwc2VkJywgIW52KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3hzY29sdW1ud2lkdGgnOlxuICAgICAgICAgICAgICAgIHRoaXMuc2V0TGVmdFBhbmVsV2lkdGgoWyd4cyddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9JTikge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFBhZ2VXaWR0aEFuZFBvc2l0aW9uKFsneHMnXSwgbnYsIG92KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHN1cGVyLm9uUHJvcGVydHlDaGFuZ2Uoa2V5LCBudiwgb3YpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljICB0b2dnbGUoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmFwcC5pc1RhYmxldEFwcGxpY2F0aW9uVHlwZSkge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBhbmRlZCA/IHRoaXMuY29sbGFwc2UoKSA6IHRoaXMuZXhwYW5kKCk7XG4gICAgICAgICAgICB9LCA1MCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLiRlbGUuc3dpcGVBbmltYXRpb24odGhpcy5leHBhbmRlZCA/ICdnb3RvTG93ZXInIDogJ2dvdG9VcHBlcicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBsaXN0ZW5Gb3JDb2xsYXBzZUFjdGlvbigpOiAoKSA9PiB2b2lkIHtcbiAgICAgICAgY29uc3QgZXZlbnROYW1lID0gJ2NsaWNrLmxlZnROYXZUb2dnbGUnO1xuICAgICAgICBsZXQgc2tpcEV2ZW50ID0gZmFsc2U7XG4gICAgICAgIHRoaXMuJGVsZS5vbihldmVudE5hbWUsICgpID0+IHtcbiAgICAgICAgICAgIHNraXBFdmVudCA9IHRydWU7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLiRwYWdlLm9uKGV2ZW50TmFtZSwgKCkgPT4gIHtcbiAgICAgICAgICAgIGlmICghc2tpcEV2ZW50KSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNraXBFdmVudCA9IGZhbHNlO1xuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuJGVsZS5vZmYoZXZlbnROYW1lKTtcbiAgICAgICAgICAgIHRoaXMuJHBhZ2Uub2ZmKGV2ZW50TmFtZSk7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzZXRMZWZ0UGFuZWxXaWR0aChkZXZpY2VzOiBzdHJpbmdbXSwgbmV3VmFsOiBudW1iZXIsIG9sZFZhbD86IG51bWJlcikge1xuICAgICAgICBkZXZpY2VzLmZvckVhY2goZGV2aWNlID0+IHtcbiAgICAgICAgICAgIGlmIChuZXdWYWwpIHtcbiAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIGBjb2wtJHtkZXZpY2V9LSR7bmV3VmFsfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG9sZFZhbCkge1xuICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgYGNvbC0ke2RldmljZX0tJHtvbGRWYWx9YCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oZGV2aWNlczogc3RyaW5nW10sIG5ld1ZhbDogbnVtYmVyLCBvbGRWYWw/OiBudW1iZXIpIHtcbiAgICAgICAgZGV2aWNlcy5mb3JFYWNoKGRldmljZSA9PiB7XG4gICAgICAgICAgICBpZiAobmV3VmFsKSB7XG4gICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kcGFnZVswXSwgYGxlZnQtcGFuZWwtY29udGFpbmVyLSR7ZGV2aWNlfS0kezEyIC0gbmV3VmFsfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG9sZFZhbCkge1xuICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJHBhZ2VbMF0sIGBsZWZ0LXBhbmVsLWNvbnRhaW5lci0ke2RldmljZX0tJHsxMiAtIG9sZFZhbH1gKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Optional, Inject, NgModule } from '@angular/core';
2
+ import { Directive, Optional, Inject, Attribute, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { PROP_STRING, PROP_NUMBER, register, StylableComponent, APPLY_STYLES_TYPE, styler, getKeyboardFocusableElements, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
5
5
  import * as i3 from '@angular/router';
6
6
  import { NavigationStart } from '@angular/router';
7
7
  import * as i1 from '@wm/core';
8
- import { $appDigest, addClass, switchClass, isMobile, removeClass, toggleClass } from '@wm/core';
8
+ import { $appDigest, addClass, getNavClass, switchClass, isMobile, removeClass, toggleClass } from '@wm/core';
9
9
  import * as i2 from '@wm/components/page';
10
10
  import { SwipeAnimation } from '@swipey';
11
11
 
@@ -165,7 +165,7 @@ var AnimationType;
165
165
  class LeftPanelDirective extends StylableComponent {
166
166
  static { this.initializeProps = registerProps(); }
167
167
  //If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
168
- constructor(app, page, layout, inj, router, explicitContext) {
168
+ constructor(app, page, layout, inj, router, explicitContext, navtype) {
169
169
  super(inj, WIDGET_CONFIG, explicitContext);
170
170
  this.app = app;
171
171
  this.page = page;
@@ -186,6 +186,7 @@ class LeftPanelDirective extends StylableComponent {
186
186
  }
187
187
  });
188
188
  this.registerDestroyListener(() => onRouteChange.unsubscribe());
189
+ navtype && this.$element.addClass(getNavClass(navtype));
189
190
  }
190
191
  collapse() {
191
192
  addClass(this.nativeElement, 'swipee-transition');
@@ -337,7 +338,7 @@ class LeftPanelDirective extends StylableComponent {
337
338
  }
338
339
  });
339
340
  }
340
- static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
341
+ static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
341
342
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0.ɵɵProvidersFeature([
342
343
  provideAsWidgetRef(LeftPanelDirective)
343
344
  ]), i0.ɵɵInheritDefinitionFeature] }); }
@@ -360,6 +361,9 @@ class LeftPanelDirective extends StylableComponent {
360
361
  args: ['EXPLICIT_CONTEXT']
361
362
  }, {
362
363
  type: Optional
364
+ }] }, { type: undefined, decorators: [{
365
+ type: Attribute,
366
+ args: ['nav-type']
363
367
  }] }], null); })();
364
368
 
365
369
  const components = [
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/left-panel/src/left-panel.props.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.animator.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.directive.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.module.ts","../../../../../projects/components/widgets/page/left-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-left-panel',\n new Map(\n [\n ['animation', {value: 'slide-in', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['columnwidth', { value: 3, ...PROP_NUMBER}],\n ['content', PROP_STRING],\n ['gestures', {value: 'on', ... PROP_STRING}],\n ['name', PROP_STRING],\n ['xscolumnwidth', { value: 10, ...PROP_NUMBER}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import { SwipeAnimation } from '@swipey';\n\nimport { $appDigest } from '@wm/core';\n\nimport { AnimationType, LeftPanelDirective } from './left-panel.directive';\n\nexport class LeftPanelAnimator extends SwipeAnimation {\n private _$animatedElements;\n private _expanded: boolean;\n private _leftPanelWidth: number;\n private _maxX: number;\n private _pageContainerWidth: number;\n private _width: number;\n\n constructor(private leftPanel: LeftPanelDirective) {\n super();\n this.init(this.leftPanel.$ele, this.leftPanel.$page);\n }\n\n public bounds(e, length): {} {\n let offset = 0;\n this.setGesturesEnabled(this.leftPanel.isGesturesEnabled());\n if (!this._width) {\n this._pageContainerWidth = this.leftPanel.$page.width();\n this._leftPanelWidth = this.leftPanel.$ele.width();\n this._maxX = this._leftPanelWidth / this._pageContainerWidth * 100;\n this._width = this.leftPanel.animation === AnimationType.SLIDE_IN ? this._pageContainerWidth : this._leftPanelWidth;\n }\n this._expanded = this.leftPanel.expanded;\n\n if (this._expanded) {\n return {\n 'center': this._leftPanelWidth,\n 'lower': -(this._leftPanelWidth - offset)\n };\n }\n if (this.leftPanel.app.isTabletApplicationType) {\n offset = 53.32;\n }\n if (e && (e.pageX || (e.touches && e.touches[0].pageX)) > offset + 100) {\n return {\n strict: true\n };\n }\n return {\n 'center': 0,\n 'upper': this._leftPanelWidth - offset\n };\n }\n\n public context() {\n return {\n 'w': this._width,\n 'pageW': this._pageContainerWidth,\n 'leftW': this._leftPanelWidth,\n 'maxX': this._maxX,\n 'limit': (min: number, v: number, max: number) => {\n if (v < min) {\n return min;\n }\n if (v > max) {\n return max;\n }\n return v;\n }\n };\n }\n\n public animation() {\n this._$animatedElements = this.leftPanel.$ele;\n if (this.leftPanel.animation === AnimationType.SLIDE_IN) {\n this._$animatedElements = this._$animatedElements.add(this.leftPanel.$page);\n if (this.leftPanel.app.isTabletApplicationType) {\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(${{ limit(-100, -($d * 100 / leftW), 0) + \\'%\\' }}, 0, 0)'\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ (($d) * 100 / pageW) + \\'%\\' }}, 0, 0)',\n 'width': '${{ (pageW - $d) + \\'px\\' }}',\n 'z-index': 101\n }\n }\n ];\n }\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(-100%, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ limit( 0, ((($D + $d) * 100 / w)), maxX ) + \\'%\\' }}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n }];\n } else {\n return {\n 'transform': 'translate3d(${{ limit( -100, ((($D + $d) * 100 / w) - 100), 0 ) + \\'%\\'}}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n };\n }\n }\n\n public onLower(): void {\n this._expanded = false;\n this.leftPanel.collapse();\n this.resetTransition();\n $appDigest();\n }\n\n public onUpper(): void {\n this._expanded = true;\n this.leftPanel.expand();\n this.resetTransition();\n $appDigest();\n }\n\n private resetTransition() {\n if (this._$animatedElements) {\n /*\n * This timeout is for preventing UI flicker at the end of animation.\n */\n setTimeout(() => {\n this._$animatedElements.css({\n 'transform': '',\n 'opacity': '',\n 'z-index': '',\n 'width': ''\n });\n }, 100);\n }\n }\n}\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\n\nimport {App, addClass, removeClass, switchClass, toggleClass, isMobile } from '@wm/core';\nimport { APPLY_STYLES_TYPE, getKeyboardFocusableElements, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { LayoutDirective, PageDirective } from '@wm/components/page';\n\nimport { registerProps } from './left-panel.props';\nimport { LeftPanelAnimator } from './left-panel.animator';\n\nconst DEFAULT_CLS = 'app-left-panel left-panel-collapsed';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-left-panel',\n hostClass: DEFAULT_CLS\n};\n\nexport enum AnimationType {\n SLIDE_IN = 'slide-in',\n SLIDE_OVER = 'slide-over'\n}\n\n@Directive({\n selector: '[wmLeftPanel]',\n providers: [\n provideAsWidgetRef(LeftPanelDirective)\n ],\n exportAs: 'wmLeftPanel'\n})\nexport class LeftPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n public animation: AnimationType;\n public columnwidth: number;\n public expanded: boolean;\n public gestures: string;\n public xscolumnwidth: number;\n\n public $ele;\n public $page;\n\n private _destroyCollapseActionListener: () => void;\n private _leftPanelAnimator;\n\n //If \"spa\" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined\n constructor(public app: App, @Optional() private page: PageDirective, @Optional() private layout: LayoutDirective, inj: Injector, router: Router, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n this.$ele = this.$element;\n this.$page = this.getAttr('spa') && layout && layout.$element || page && page.$element;\n addClass(this.$page[0], 'left-panel-collapsed-container');\n if (this.columnwidth) {\n this.setLeftPanelWidth(['md', 'sm'], this.columnwidth);\n }\n if (this.app.isTabletApplicationType) {\n addClass(this.nativeElement, 'wm-tablet-app-left-panel');\n }\n const onRouteChange = router.events.subscribe(e => {\n if (e instanceof NavigationStart) {\n this.collapse();\n }\n });\n this.registerDestroyListener(() => onRouteChange.unsubscribe());\n }\n\n public collapse(): void {\n addClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-collapsed', 'left-panel-expanded');\n if (this.expanded) {\n setTimeout(() => {\n const leftNavButton = $('.app-header-action');\n leftNavButton.attr('aria-expanded', 'false');\n leftNavButton.focus();\n }, 50);\n }\n if (isMobile()) {\n addClass(this.nativeElement, 'hidden');\n }\n this.expanded = false;\n switchClass(this.$page[0], 'left-panel-collapsed-container', 'left-panel-expanded-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], null, this.columnwidth);\n this.setPageWidthAndPosition(['xs'], null, this.xscolumnwidth);\n }\n if (this._destroyCollapseActionListener) {\n this._destroyCollapseActionListener();\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:collapse');\n }\n\n public expand(): void {\n removeClass(this.nativeElement, 'hidden');\n removeClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-expanded', 'left-panel-collapsed');\n this.expanded = true;\n if (!(this.app.isTabletApplicationType && this.animation === AnimationType.SLIDE_IN)) {\n this._destroyCollapseActionListener = this.listenForCollapseAction();\n }\n switchClass(this.$page[0], 'left-panel-expanded-container', 'left-panel-collapsed-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:expand');\n $('.app-header-action').attr('aria-expanded', `${this.expanded}`);\n const focusableElements = getKeyboardFocusableElements(this.nativeElement);\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n setTimeout(() => {\n $(firstFocusableElement).focus();\n }, 50);\n $(firstFocusableElement).on('keydown', (event) => {\n if (event.shiftKey && event.key === 'Tab') {\n this.collapse();\n }\n });\n $(lastFocusableElement).on('keydown', (event) => {\n if (event.key === 'Tab') {\n this.collapse();\n }\n });\n this.$element.on('keydown', (event) => {\n if (event.key === 'Escape') {\n this.collapse();\n }\n });\n }\n\n public isGesturesEnabled(): boolean {\n return this.gestures === 'on';\n }\n\n public isVisible(): boolean {\n return this.expanded;\n }\n\n public onPropertyChange(key, nv, ov) {\n switch (key) {\n case 'animation' :\n if (nv === AnimationType.SLIDE_IN) {\n removeClass(this.$page[0], 'slide-over-left-panel-container');\n addClass(this.$page[0], 'slide-in-left-panel-container');\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n } else if (nv === AnimationType.SLIDE_OVER) {\n removeClass(this.$page[0], 'slide-in-left-panel-container');\n addClass(this.$page[0], 'slide-over-left-panel-container');\n }\n this._leftPanelAnimator = new LeftPanelAnimator(this);\n switchClass(this.nativeElement, nv, ov);\n break;\n case 'columnwidth':\n this.setLeftPanelWidth(['md', 'sm'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], nv, ov);\n }\n break;\n case 'expanded':\n toggleClass(this.nativeElement, 'left-panel-expanded', nv);\n toggleClass(this.nativeElement, 'left-panel-collapsed', !nv);\n break;\n case 'xscolumnwidth':\n this.setLeftPanelWidth(['xs'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['xs'], nv, ov);\n }\n break;\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public toggle(): void {\n if (this.app.isTabletApplicationType) {\n setTimeout(() => {\n this.expanded ? this.collapse() : this.expand();\n }, 50);\n } else {\n this.$ele.swipeAnimation(this.expanded ? 'gotoLower' : 'gotoUpper');\n }\n }\n\n private listenForCollapseAction(): () => void {\n const eventName = 'click.leftNavToggle';\n let skipEvent = false;\n this.$ele.on(eventName, () => {\n skipEvent = true;\n });\n this.$page.on(eventName, () => {\n if (!skipEvent) {\n this.toggle();\n }\n skipEvent = false;\n });\n return () => {\n this.$ele.off(eventName);\n this.$page.off(eventName);\n };\n }\n\n private setLeftPanelWidth(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.nativeElement, `col-${device}-${newVal}`);\n }\n if (oldVal) {\n removeClass(this.nativeElement, `col-${device}-${oldVal}`);\n }\n });\n }\n\n private setPageWidthAndPosition(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.$page[0], `left-panel-container-${device}-${12 - newVal}`);\n }\n if (oldVal) {\n removeClass(this.$page[0], `left-panel-container-${device}-${12 - oldVal}`);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LeftPanelDirective } from './left-panel.directive';\n\nconst components = [\n LeftPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LeftPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,eAAe,EACf,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,GAAG,WAAW,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAI,WAAW,EAAC,CAAC;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;ACZK,MAAO,iBAAkB,SAAQ,cAAc,CAAA;AAQjD,IAAA,WAAA,CAAoB,SAA6B,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;QADQ,IAAS,CAAA,SAAA,GAAT,SAAS,CAAoB;AAE7C,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;K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A,EAAA,CAAA,EAAA;mEAAf,eAAe,EAAA,CAAA,CAAA,EAAA;uEANpB,YAAY;YACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,eAAe,EAAA,CAAA;cAR3B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,eAAe,EAAA,EAAA,YAAA,EAAA,CAXxB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAKd,YAAY;AACZ,QAAA,kBAAkB,aANtB,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRtB;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/left-panel/src/left-panel.props.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.animator.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.directive.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.module.ts","../../../../../projects/components/widgets/page/left-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-left-panel',\n new Map(\n [\n ['animation', {value: 'slide-in', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['columnwidth', { value: 3, ...PROP_NUMBER}],\n ['content', PROP_STRING],\n ['gestures', {value: 'on', ... PROP_STRING}],\n ['name', PROP_STRING],\n ['xscolumnwidth', { value: 10, ...PROP_NUMBER}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import { SwipeAnimation } from '@swipey';\n\nimport { $appDigest } from '@wm/core';\n\nimport { AnimationType, LeftPanelDirective } from './left-panel.directive';\n\nexport class LeftPanelAnimator extends SwipeAnimation {\n private _$animatedElements;\n private _expanded: boolean;\n private _leftPanelWidth: number;\n private _maxX: number;\n private _pageContainerWidth: number;\n private _width: number;\n\n constructor(private leftPanel: LeftPanelDirective) {\n super();\n this.init(this.leftPanel.$ele, this.leftPanel.$page);\n }\n\n public bounds(e, length): {} {\n let offset = 0;\n this.setGesturesEnabled(this.leftPanel.isGesturesEnabled());\n if (!this._width) {\n this._pageContainerWidth = this.leftPanel.$page.width();\n this._leftPanelWidth = this.leftPanel.$ele.width();\n this._maxX = this._leftPanelWidth / this._pageContainerWidth * 100;\n this._width = this.leftPanel.animation === AnimationType.SLIDE_IN ? this._pageContainerWidth : this._leftPanelWidth;\n }\n this._expanded = this.leftPanel.expanded;\n\n if (this._expanded) {\n return {\n 'center': this._leftPanelWidth,\n 'lower': -(this._leftPanelWidth - offset)\n };\n }\n if (this.leftPanel.app.isTabletApplicationType) {\n offset = 53.32;\n }\n if (e && (e.pageX || (e.touches && e.touches[0].pageX)) > offset + 100) {\n return {\n strict: true\n };\n }\n return {\n 'center': 0,\n 'upper': this._leftPanelWidth - offset\n };\n }\n\n public context() {\n return {\n 'w': this._width,\n 'pageW': this._pageContainerWidth,\n 'leftW': this._leftPanelWidth,\n 'maxX': this._maxX,\n 'limit': (min: number, v: number, max: number) => {\n if (v < min) {\n return min;\n }\n if (v > max) {\n return max;\n }\n return v;\n }\n };\n }\n\n public animation() {\n this._$animatedElements = this.leftPanel.$ele;\n if (this.leftPanel.animation === AnimationType.SLIDE_IN) {\n this._$animatedElements = this._$animatedElements.add(this.leftPanel.$page);\n if (this.leftPanel.app.isTabletApplicationType) {\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(${{ limit(-100, -($d * 100 / leftW), 0) + \\'%\\' }}, 0, 0)'\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ (($d) * 100 / pageW) + \\'%\\' }}, 0, 0)',\n 'width': '${{ (pageW - $d) + \\'px\\' }}',\n 'z-index': 101\n }\n }\n ];\n }\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(-100%, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ limit( 0, ((($D + $d) * 100 / w)), maxX ) + \\'%\\' }}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n }];\n } else {\n return {\n 'transform': 'translate3d(${{ limit( -100, ((($D + $d) * 100 / w) - 100), 0 ) + \\'%\\'}}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n };\n }\n }\n\n public onLower(): void {\n this._expanded = false;\n this.leftPanel.collapse();\n this.resetTransition();\n $appDigest();\n }\n\n public onUpper(): void {\n this._expanded = true;\n this.leftPanel.expand();\n this.resetTransition();\n $appDigest();\n }\n\n private resetTransition() {\n if (this._$animatedElements) {\n /*\n * This timeout is for preventing UI flicker at the end of animation.\n */\n setTimeout(() => {\n this._$animatedElements.css({\n 'transform': '',\n 'opacity': '',\n 'z-index': '',\n 'width': ''\n });\n }, 100);\n }\n }\n}\n","import {Attribute, Directive, Inject, Injector, Optional} from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\n\nimport {App, addClass, removeClass, switchClass, toggleClass, isMobile, getNavClass } from '@wm/core';\nimport { APPLY_STYLES_TYPE, getKeyboardFocusableElements, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { LayoutDirective, PageDirective } from '@wm/components/page';\n\nimport { registerProps } from './left-panel.props';\nimport { LeftPanelAnimator } from './left-panel.animator';\n\nconst DEFAULT_CLS = 'app-left-panel left-panel-collapsed';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-left-panel',\n hostClass: DEFAULT_CLS\n};\n\nexport enum AnimationType {\n SLIDE_IN = 'slide-in',\n SLIDE_OVER = 'slide-over'\n}\n\n@Directive({\n selector: '[wmLeftPanel]',\n providers: [\n provideAsWidgetRef(LeftPanelDirective)\n ],\n exportAs: 'wmLeftPanel'\n})\nexport class LeftPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n public animation: AnimationType;\n public columnwidth: number;\n public expanded: boolean;\n public gestures: string;\n public xscolumnwidth: number;\n\n public $ele;\n public $page;\n\n private _destroyCollapseActionListener: () => void;\n private _leftPanelAnimator;\n\n //If \"spa\" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined\n constructor(public app: App, @Optional() private page: PageDirective, @Optional() private layout: LayoutDirective, inj: Injector, router: Router, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any, @Attribute('nav-type') navtype: string) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n this.$ele = this.$element;\n this.$page = this.getAttr('spa') && layout && layout.$element || page && page.$element;\n addClass(this.$page[0], 'left-panel-collapsed-container');\n if (this.columnwidth) {\n this.setLeftPanelWidth(['md', 'sm'], this.columnwidth);\n }\n if (this.app.isTabletApplicationType) {\n addClass(this.nativeElement, 'wm-tablet-app-left-panel');\n }\n const onRouteChange = router.events.subscribe(e => {\n if (e instanceof NavigationStart) {\n this.collapse();\n }\n });\n this.registerDestroyListener(() => onRouteChange.unsubscribe());\n navtype && this.$element.addClass(getNavClass(navtype));\n }\n\n public collapse(): void {\n addClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-collapsed', 'left-panel-expanded');\n if (this.expanded) {\n setTimeout(() => {\n const leftNavButton = $('.app-header-action');\n leftNavButton.attr('aria-expanded', 'false');\n leftNavButton.focus();\n }, 50);\n }\n if (isMobile()) {\n addClass(this.nativeElement, 'hidden');\n }\n this.expanded = false;\n switchClass(this.$page[0], 'left-panel-collapsed-container', 'left-panel-expanded-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], null, this.columnwidth);\n this.setPageWidthAndPosition(['xs'], null, this.xscolumnwidth);\n }\n if (this._destroyCollapseActionListener) {\n this._destroyCollapseActionListener();\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:collapse');\n }\n\n public expand(): void {\n removeClass(this.nativeElement, 'hidden');\n removeClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-expanded', 'left-panel-collapsed');\n this.expanded = true;\n if (!(this.app.isTabletApplicationType && this.animation === AnimationType.SLIDE_IN)) {\n this._destroyCollapseActionListener = this.listenForCollapseAction();\n }\n switchClass(this.$page[0], 'left-panel-expanded-container', 'left-panel-collapsed-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:expand');\n $('.app-header-action').attr('aria-expanded', `${this.expanded}`);\n const focusableElements = getKeyboardFocusableElements(this.nativeElement);\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n setTimeout(() => {\n $(firstFocusableElement).focus();\n }, 50);\n $(firstFocusableElement).on('keydown', (event) => {\n if (event.shiftKey && event.key === 'Tab') {\n this.collapse();\n }\n });\n $(lastFocusableElement).on('keydown', (event) => {\n if (event.key === 'Tab') {\n this.collapse();\n }\n });\n this.$element.on('keydown', (event) => {\n if (event.key === 'Escape') {\n this.collapse();\n }\n });\n }\n\n public isGesturesEnabled(): boolean {\n return this.gestures === 'on';\n }\n\n public isVisible(): boolean {\n return this.expanded;\n }\n\n public onPropertyChange(key, nv, ov) {\n switch (key) {\n case 'animation' :\n if (nv === AnimationType.SLIDE_IN) {\n removeClass(this.$page[0], 'slide-over-left-panel-container');\n addClass(this.$page[0], 'slide-in-left-panel-container');\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n } else if (nv === AnimationType.SLIDE_OVER) {\n removeClass(this.$page[0], 'slide-in-left-panel-container');\n addClass(this.$page[0], 'slide-over-left-panel-container');\n }\n this._leftPanelAnimator = new LeftPanelAnimator(this);\n switchClass(this.nativeElement, nv, ov);\n break;\n case 'columnwidth':\n this.setLeftPanelWidth(['md', 'sm'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], nv, ov);\n }\n break;\n case 'expanded':\n toggleClass(this.nativeElement, 'left-panel-expanded', nv);\n toggleClass(this.nativeElement, 'left-panel-collapsed', !nv);\n break;\n case 'xscolumnwidth':\n this.setLeftPanelWidth(['xs'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['xs'], nv, ov);\n }\n break;\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public toggle(): void {\n if (this.app.isTabletApplicationType) {\n setTimeout(() => {\n this.expanded ? this.collapse() : this.expand();\n }, 50);\n } else {\n this.$ele.swipeAnimation(this.expanded ? 'gotoLower' : 'gotoUpper');\n }\n }\n\n private listenForCollapseAction(): () => void {\n const eventName = 'click.leftNavToggle';\n let skipEvent = false;\n this.$ele.on(eventName, () => {\n skipEvent = true;\n });\n this.$page.on(eventName, () => {\n if (!skipEvent) {\n this.toggle();\n }\n skipEvent = false;\n });\n return () => {\n this.$ele.off(eventName);\n this.$page.off(eventName);\n };\n }\n\n private setLeftPanelWidth(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.nativeElement, `col-${device}-${newVal}`);\n }\n if (oldVal) {\n removeClass(this.nativeElement, `col-${device}-${oldVal}`);\n }\n });\n }\n\n private setPageWidthAndPosition(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.$page[0], `left-panel-container-${device}-${12 - newVal}`);\n }\n if (oldVal) {\n removeClass(this.$page[0], `left-panel-container-${device}-${12 - oldVal}`);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LeftPanelDirective } from './left-panel.directive';\n\nconst components = [\n LeftPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LeftPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,eAAe,EACf,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,GAAG,WAAW,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAI,WAAW,EAAC,CAAC;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;ACZK,MAAO,iBAAkB,SAAQ,cAAc,CAAA;AAQjD,IAAA,WAAA,CAAoB,SAA6B,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;QADQ,IAAS,CAAA,SAAA,GAAT,SAAS,CAAoB;AAE7C,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KACxD;IAEM,MAAM,CAAC,CAAC,EAAE,MAAM,EAAA;QACnB,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,kBA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AACP,oBAAA,kBAAkB,CAAoB,kBAAA,CAAA;AACzC,iBAAA;AACD,gBAAA,QAAQ,EAAE,aAAa;AAC1B,aAAA,CAAA;;sBAiBiC,QAAQ;;sBAAiC,QAAQ;;sBAAoE,MAAM;uBAAC,kBAAkB,CAAA;;sBAAG,QAAQ;;sBAA0B,SAAS;uBAAC,UAAU,CAAA;;;ACrCzO,MAAM,UAAU,GAAG;IACf,kBAAkB;CACrB,CAAC;MAUW,eAAe,CAAA;gFAAf,eAAe,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAf,eAAe,EAAA,CAAA,CAAA,EAAA;uEANpB,YAAY;YACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,eAAe,EAAA,CAAA;cAR3B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,eAAe,EAAA,EAAA,YAAA,EAAA,CAXxB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAKd,YAAY;AACZ,QAAA,kBAAkB,aANtB,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRtB;;AAEG;;;;"}
@@ -22,7 +22,7 @@ export declare class LeftPanelDirective extends StylableComponent {
22
22
  $page: any;
23
23
  private _destroyCollapseActionListener;
24
24
  private _leftPanelAnimator;
25
- constructor(app: App, page: PageDirective, layout: LayoutDirective, inj: Injector, router: Router, explicitContext: any);
25
+ constructor(app: App, page: PageDirective, layout: LayoutDirective, inj: Injector, router: Router, explicitContext: any, navtype: string);
26
26
  collapse(): void;
27
27
  expand(): void;
28
28
  isGesturesEnabled(): boolean;
@@ -32,6 +32,6 @@ export declare class LeftPanelDirective extends StylableComponent {
32
32
  private listenForCollapseAction;
33
33
  private setLeftPanelWidth;
34
34
  private setPageWidthAndPosition;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<LeftPanelDirective, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<LeftPanelDirective, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }, { attribute: "nav-type"; }]>;
36
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<LeftPanelDirective, "[wmLeftPanel]", ["wmLeftPanel"], {}, {}, never, never, false, never>;
37
37
  }
@@ -40,9 +40,10 @@
40
40
  };
41
41
  class RightPanelDirective extends base.StylableComponent {
42
42
  static { this.initializeProps = registerProps(); }
43
- constructor(inj, explicitContext) {
43
+ constructor(inj, explicitContext, navtype) {
44
44
  super(inj, WIDGET_CONFIG, explicitContext);
45
45
  base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
46
+ navtype && this.$element.addClass(core.getNavClass(navtype));
46
47
  }
47
48
  onPropertyChange(key, nv, ov) {
48
49
  if (key === 'columnwidth') {
@@ -52,7 +53,7 @@
52
53
  super.onPropertyChange(key, nv, ov);
53
54
  }
54
55
  }
55
- static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
56
+ static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinjectAttribute('nav-type')); }; }
56
57
  static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0__namespace.ɵɵProvidersFeature([
57
58
  base.provideAsWidgetRef(RightPanelDirective)
58
59
  ]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
@@ -71,6 +72,9 @@
71
72
  args: ['EXPLICIT_CONTEXT']
72
73
  }, {
73
74
  type: i0.Optional
75
+ }] }, { type: undefined, decorators: [{
76
+ type: i0.Attribute,
77
+ args: ['nav-type']
74
78
  }] }], null); })();
75
79
 
76
80
  const components = [
@@ -1,5 +1,5 @@
1
- import { Directive, Inject, Injector, Optional } from '@angular/core';
2
- import { switchClass } from '@wm/core';
1
+ import { Attribute, Directive, Inject, Injector, Optional } from '@angular/core';
2
+ import { getNavClass, switchClass } from '@wm/core';
3
3
  import { APPLY_STYLES_TYPE, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
4
4
  import { registerProps } from './right-panel.props';
5
5
  import * as i0 from "@angular/core";
@@ -10,9 +10,10 @@ const WIDGET_CONFIG = {
10
10
  };
11
11
  export class RightPanelDirective extends StylableComponent {
12
12
  static { this.initializeProps = registerProps(); }
13
- constructor(inj, explicitContext) {
13
+ constructor(inj, explicitContext, navtype) {
14
14
  super(inj, WIDGET_CONFIG, explicitContext);
15
15
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
16
+ navtype && this.$element.addClass(getNavClass(navtype));
16
17
  }
17
18
  onPropertyChange(key, nv, ov) {
18
19
  if (key === 'columnwidth') {
@@ -22,7 +23,7 @@ export class RightPanelDirective extends StylableComponent {
22
23
  super.onPropertyChange(key, nv, ov);
23
24
  }
24
25
  }
25
- static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
26
+ static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
26
27
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0.ɵɵProvidersFeature([
27
28
  provideAsWidgetRef(RightPanelDirective)
28
29
  ]), i0.ɵɵInheritDefinitionFeature] }); }
@@ -41,5 +42,8 @@ export class RightPanelDirective extends StylableComponent {
41
42
  args: ['EXPLICIT_CONTEXT']
42
43
  }, {
43
44
  type: Optional
45
+ }] }, { type: undefined, decorators: [{
46
+ type: Attribute,
47
+ args: ['nav-type']
44
48
  }] }], null); })();
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmlnaHQtcGFuZWwuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL3BhZ2UvcmlnaHQtcGFuZWwvc3JjL3JpZ2h0LXBhbmVsLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXBFLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxVQUFVLENBQUM7QUFFckMsT0FBTyxFQUFFLGlCQUFpQixFQUFpQixrQkFBa0IsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0SCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBRXBELE1BQU0sV0FBVyxHQUFHLGlCQUFpQixDQUFDO0FBQ3RDLE1BQU0sYUFBYSxHQUFrQjtJQUNqQyxVQUFVLEVBQUUsZ0JBQWdCO0lBQzVCLFNBQVMsRUFBRSxXQUFXO0NBQ3pCLENBQUM7QUFTRixNQUFNLE9BQU8sbUJBQW9CLFNBQVEsaU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Byb3BlcnR5Q2hhbmdlKGtleSwgbnYsIG92KTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
@@ -1,8 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Inject, Optional, NgModule } from '@angular/core';
2
+ import { Directive, Inject, Optional, Attribute, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { PROP_STRING, PROP_NUMBER, register, StylableComponent, APPLY_STYLES_TYPE, styler, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
5
- import { switchClass } from '@wm/core';
5
+ import { getNavClass, switchClass } from '@wm/core';
6
6
 
7
7
  const registerProps = () => {
8
8
  register('wm-right-panel', new Map([
@@ -21,9 +21,10 @@ const WIDGET_CONFIG = {
21
21
  };
22
22
  class RightPanelDirective extends StylableComponent {
23
23
  static { this.initializeProps = registerProps(); }
24
- constructor(inj, explicitContext) {
24
+ constructor(inj, explicitContext, navtype) {
25
25
  super(inj, WIDGET_CONFIG, explicitContext);
26
26
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
27
+ navtype && this.$element.addClass(getNavClass(navtype));
27
28
  }
28
29
  onPropertyChange(key, nv, ov) {
29
30
  if (key === 'columnwidth') {
@@ -33,7 +34,7 @@ class RightPanelDirective extends StylableComponent {
33
34
  super.onPropertyChange(key, nv, ov);
34
35
  }
35
36
  }
36
- static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
37
+ static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
37
38
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0.ɵɵProvidersFeature([
38
39
  provideAsWidgetRef(RightPanelDirective)
39
40
  ]), i0.ɵɵInheritDefinitionFeature] }); }
@@ -52,6 +53,9 @@ class RightPanelDirective extends StylableComponent {
52
53
  args: ['EXPLICIT_CONTEXT']
53
54
  }, {
54
55
  type: Optional
56
+ }] }, { type: undefined, decorators: [{
57
+ type: Attribute,
58
+ args: ['nav-type']
55
59
  }] }], null); })();
56
60
 
57
61
  const components = [