@po-ui/ng-templates 6.0.0-rc.1 → 6.3.0
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.
- package/README.md +18 -18
- package/esm2020/lib/components/components.module.mjs +86 -86
- package/esm2020/lib/components/index.mjs +12 -12
- package/esm2020/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-modal-content.enum.mjs +17 -17
- package/esm2020/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-type.enum.mjs +17 -17
- package/esm2020/lib/components/po-modal-password-recovery/index.mjs +8 -8
- package/esm2020/lib/components/po-modal-password-recovery/interfaces/po-modal-password-recovery.interface.mjs +2 -2
- package/esm2020/lib/components/po-modal-password-recovery/literals/i18n/po-modal-password-recovery-literals.mjs +119 -119
- package/esm2020/lib/components/po-modal-password-recovery/po-modal-password-recovery-base.component.mjs +172 -172
- package/esm2020/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.mjs +31 -31
- package/esm2020/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.mjs +451 -451
- package/esm2020/lib/components/po-modal-password-recovery/po-modal-password-recovery.module.mjs +29 -29
- package/esm2020/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.mjs +17 -17
- package/esm2020/lib/components/po-page-background/index.mjs +3 -3
- package/esm2020/lib/components/po-page-background/po-page-background.component.mjs +191 -191
- package/esm2020/lib/components/po-page-background/po-page-background.module.mjs +27 -27
- package/esm2020/lib/components/po-page-blocked-user/enums/po-page-blocked-user-reason.enum.mjs +17 -17
- package/esm2020/lib/components/po-page-blocked-user/index.mjs +8 -8
- package/esm2020/lib/components/po-page-blocked-user/interfaces/po-page-blocked-user-reason-params.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-blocked-user/literals/i18n/po-page-blocked-user-literals.mjs +78 -78
- package/esm2020/lib/components/po-page-blocked-user/po-page-blocked-user-base.component.mjs +170 -170
- package/esm2020/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.mjs +109 -109
- package/esm2020/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.mjs +104 -104
- package/esm2020/lib/components/po-page-blocked-user/po-page-blocked-user.component.mjs +112 -112
- package/esm2020/lib/components/po-page-blocked-user/po-page-blocked-user.module.mjs +29 -29
- package/esm2020/lib/components/po-page-change-password/index.mjs +7 -7
- package/esm2020/lib/components/po-page-change-password/interfaces/po-page-change-password-recovery.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-change-password/interfaces/po-page-change-password-requirement.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-change-password/interfaces/po-page-change-password.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-change-password/literals/i18n/po-page-change-password-literals.mjs +79 -79
- package/esm2020/lib/components/po-page-change-password/po-page-change-password-base.component.mjs +186 -186
- package/esm2020/lib/components/po-page-change-password/po-page-change-password.component.mjs +423 -423
- package/esm2020/lib/components/po-page-change-password/po-page-change-password.module.mjs +30 -30
- package/esm2020/lib/components/po-page-change-password/po-page-change-password.service.mjs +17 -17
- package/esm2020/lib/components/po-page-dynamic-detail/index.mjs +10 -10
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-actions.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-back.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-edit.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-remove.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-field.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-metadata.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-options.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-detail/po-page-dynamic-detail-actions.service.mjs +43 -43
- package/esm2020/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.mjs +462 -462
- package/esm2020/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.module.mjs +53 -53
- package/esm2020/lib/components/po-page-dynamic-edit/index.mjs +10 -10
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-actions.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-cancel.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save-new.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-field.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-metadata.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-options.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-edit/po-page-dynamic-edit-actions.service.mjs +43 -43
- package/esm2020/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.mjs +572 -572
- package/esm2020/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.module.mjs +59 -59
- package/esm2020/lib/components/po-page-dynamic-search/index.mjs +7 -7
- package/esm2020/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-base.component.mjs +134 -134
- package/esm2020/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-literals.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.mjs +74 -74
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.mjs +260 -252
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search-filters.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search-literals.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search-options.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.mjs +267 -267
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-search/po-page-dynamic-search.module.mjs +54 -54
- package/esm2020/lib/components/po-page-dynamic-table/index.mjs +16 -16
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-detail.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-duplicate.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-edit.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-new.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove-all.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-action.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-table-action.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-field.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-filters.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-metadata.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-options.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.mjs +104 -104
- package/esm2020/lib/components/po-page-dynamic-table/po-page-dynamic-table-actions.service.mjs +58 -58
- package/esm2020/lib/components/po-page-dynamic-table/po-page-dynamic-table-literals.mjs +63 -63
- package/esm2020/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.mjs +831 -803
- package/esm2020/lib/components/po-page-dynamic-table/po-page-dynamic-table.module.mjs +52 -52
- package/esm2020/lib/components/po-page-job-scheduler/index.mjs +4 -4
- package/esm2020/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler-internal.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.mjs +80 -80
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.mjs +374 -374
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-internal.mjs +15 -15
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-literals.mjs +195 -195
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.mjs +21 -21
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.mjs +81 -81
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.mjs +195 -195
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.mjs +275 -275
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler.module.mjs +72 -72
- package/esm2020/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.mjs +206 -206
- package/esm2020/lib/components/po-page-login/enums/po-page-login-authentication-type.enum.mjs +15 -15
- package/esm2020/lib/components/po-page-login/index.mjs +8 -8
- package/esm2020/lib/components/po-page-login/interfaces/po-page-login-custom-field.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-login/interfaces/po-page-login-literals.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-login/interfaces/po-page-login-recovery.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-login/interfaces/po-page-login.interface.mjs +2 -2
- package/esm2020/lib/components/po-page-login/po-page-login-base.component.mjs +954 -954
- package/esm2020/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.mjs +139 -139
- package/esm2020/lib/components/po-page-login/po-page-login.component.mjs +487 -487
- package/esm2020/lib/components/po-page-login/po-page-login.module.mjs +31 -31
- package/esm2020/lib/components/po-page-login/po-page-login.service.mjs +31 -31
- package/esm2020/lib/index.mjs +4 -4
- package/esm2020/lib/po-templates.module.mjs +18 -18
- package/esm2020/lib/services/index.mjs +4 -4
- package/esm2020/lib/services/po-page-customization/index.mjs +4 -4
- package/esm2020/lib/services/po-page-customization/po-page-customization.module.mjs +24 -24
- package/esm2020/lib/services/po-page-customization/po-page-customization.service.mjs +85 -85
- package/esm2020/lib/services/po-page-customization/po-page-dynamic-options.interface.mjs +2 -2
- package/esm2020/lib/services/po-page-dynamic/index.mjs +3 -3
- package/esm2020/lib/services/po-page-dynamic/po-page-dynamic-literals.interface.mjs +2 -2
- package/esm2020/lib/services/po-page-dynamic/po-page-dynamic.module.mjs +24 -24
- package/esm2020/lib/services/po-page-dynamic/po-page-dynamic.service.mjs +102 -102
- package/esm2020/lib/services/services.module.mjs +18 -18
- package/esm2020/lib/utils/util.mjs +352 -352
- package/esm2020/po-ui-ng-templates.mjs +4 -4
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/po-ui-ng-templates.mjs +9304 -9269
- package/fesm2015/po-ui-ng-templates.mjs.map +1 -1
- package/fesm2020/po-ui-ng-templates.mjs +8937 -8902
- package/fesm2020/po-ui-ng-templates.mjs.map +1 -1
- package/lib/components/components.module.d.ts +16 -16
- package/lib/components/index.d.ts +11 -11
- package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-modal-content.enum.d.ts +15 -15
- package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-type.enum.d.ts +15 -15
- package/lib/components/po-modal-password-recovery/index.d.ts +7 -7
- package/lib/components/po-modal-password-recovery/interfaces/po-modal-password-recovery.interface.d.ts +25 -25
- package/lib/components/po-modal-password-recovery/literals/i18n/po-modal-password-recovery-literals.d.ts +6 -6
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery-base.component.d.ts +283 -283
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.d.ts +14 -14
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.d.ts +90 -90
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.module.d.ts +16 -16
- package/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.d.ts +13 -13
- package/lib/components/po-page-background/index.d.ts +2 -2
- package/lib/components/po-page-background/po-page-background.component.d.ts +54 -54
- package/lib/components/po-page-background/po-page-background.module.d.ts +16 -16
- package/lib/components/po-page-blocked-user/enums/po-page-blocked-user-reason.enum.d.ts +15 -15
- package/lib/components/po-page-blocked-user/index.d.ts +7 -7
- package/lib/components/po-page-blocked-user/interfaces/po-page-blocked-user-reason-params.interface.d.ts +15 -15
- package/lib/components/po-page-blocked-user/literals/i18n/po-page-blocked-user-literals.d.ts +72 -72
- package/lib/components/po-page-blocked-user/po-page-blocked-user-base.component.d.ts +146 -146
- package/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.d.ts +19 -19
- package/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.d.ts +26 -26
- package/lib/components/po-page-blocked-user/po-page-blocked-user.component.d.ts +43 -43
- package/lib/components/po-page-blocked-user/po-page-blocked-user.module.d.ts +18 -18
- package/lib/components/po-page-change-password/index.d.ts +6 -6
- package/lib/components/po-page-change-password/interfaces/po-page-change-password-recovery.interface.d.ts +30 -30
- package/lib/components/po-page-change-password/interfaces/po-page-change-password-requirement.interface.d.ts +17 -17
- package/lib/components/po-page-change-password/interfaces/po-page-change-password.interface.d.ts +13 -13
- package/lib/components/po-page-change-password/literals/i18n/po-page-change-password-literals.d.ts +6 -6
- package/lib/components/po-page-change-password/po-page-change-password-base.component.d.ts +233 -233
- package/lib/components/po-page-change-password/po-page-change-password.component.d.ts +93 -93
- package/lib/components/po-page-change-password/po-page-change-password.module.d.ts +17 -17
- package/lib/components/po-page-change-password/po-page-change-password.service.d.ts +10 -10
- package/lib/components/po-page-dynamic-detail/index.d.ts +9 -9
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-actions.interface.d.ts +95 -95
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-back.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-edit.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-remove.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-field.interface.d.ts +16 -16
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-metadata.interface.d.ts +31 -31
- package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-options.interface.d.ts +36 -36
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail-actions.service.d.ts +18 -18
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.d.ts +257 -257
- package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.module.d.ts +17 -17
- package/lib/components/po-page-dynamic-edit/index.d.ts +9 -9
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-actions.interface.d.ts +123 -123
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-cancel.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save-new.interface.d.ts +44 -44
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save.interface.d.ts +43 -43
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-field.interface.d.ts +12 -12
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-metadata.interface.d.ts +25 -25
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-options.interface.d.ts +28 -28
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit-actions.service.d.ts +18 -18
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.d.ts +329 -329
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.module.d.ts +17 -17
- package/lib/components/po-page-dynamic-search/index.d.ts +6 -6
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-base.component.d.ts +48 -48
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-literals.interface.d.ts +15 -15
- package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.d.ts +29 -29
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.d.ts +184 -183
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-filters.interface.d.ts +14 -14
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-literals.interface.d.ts +21 -21
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search-options.interface.d.ts +59 -59
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.d.ts +62 -62
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.interface.d.ts +29 -29
- package/lib/components/po-page-dynamic-search/po-page-dynamic-search.module.d.ts +18 -18
- package/lib/components/po-page-dynamic-table/index.d.ts +15 -15
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.d.ts +196 -196
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-detail.interface.d.ts +21 -21
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-duplicate.interface.d.ts +29 -29
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-edit.interface.d.ts +22 -22
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-new.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove-all.interface.d.ts +39 -39
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-action.interface.d.ts +82 -82
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-table-action.interface.d.ts +91 -83
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-field.interface.d.ts +49 -38
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-filters.interface.d.ts +18 -18
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-metadata.interface.d.ts +31 -31
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-options.interface.d.ts +91 -91
- package/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.d.ts +130 -130
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table-actions.service.d.ts +26 -26
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table-literals.d.ts +62 -62
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.d.ts +314 -303
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.module.d.ts +19 -19
- package/lib/components/po-page-job-scheduler/index.d.ts +3 -3
- package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler-internal.interface.d.ts +14 -14
- package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler.interface.d.ts +48 -48
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.d.ts +176 -176
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.d.ts +52 -52
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-internal.d.ts +9 -9
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-literals.d.ts +194 -194
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.d.ts +16 -16
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.d.ts +14 -14
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.d.ts +36 -36
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.d.ts +116 -116
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.module.d.ts +13 -13
- package/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.d.ts +32 -32
- package/lib/components/po-page-login/enums/po-page-login-authentication-type.enum.d.ts +13 -13
- package/lib/components/po-page-login/index.d.ts +7 -7
- package/lib/components/po-page-login/interfaces/po-page-login-custom-field.interface.d.ts +72 -72
- package/lib/components/po-page-login/interfaces/po-page-login-literals.interface.d.ts +59 -59
- package/lib/components/po-page-login/interfaces/po-page-login-recovery.interface.d.ts +30 -30
- package/lib/components/po-page-login/interfaces/po-page-login.interface.d.ts +15 -15
- package/lib/components/po-page-login/po-page-login-base.component.d.ts +663 -663
- package/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.d.ts +19 -19
- package/lib/components/po-page-login/po-page-login.component.d.ts +72 -72
- package/lib/components/po-page-login/po-page-login.module.d.ts +18 -18
- package/lib/components/po-page-login/po-page-login.service.d.ts +12 -12
- package/lib/index.d.ts +3 -3
- package/lib/po-templates.module.d.ts +8 -8
- package/lib/services/index.d.ts +3 -3
- package/lib/services/po-page-customization/index.d.ts +3 -3
- package/lib/services/po-page-customization/po-page-customization.module.d.ts +13 -13
- package/lib/services/po-page-customization/po-page-customization.service.d.ts +19 -19
- package/lib/services/po-page-customization/po-page-dynamic-options.interface.d.ts +8 -8
- package/lib/services/po-page-dynamic/index.d.ts +2 -2
- package/lib/services/po-page-dynamic/po-page-dynamic-literals.interface.d.ts +4 -4
- package/lib/services/po-page-dynamic/po-page-dynamic.module.d.ts +13 -13
- package/lib/services/po-page-dynamic/po-page-dynamic.service.d.ts +31 -31
- package/lib/services/services.module.d.ts +8 -8
- package/lib/utils/util.d.ts +152 -152
- package/package.json +9 -6
- package/po-ui-ng-templates-6.3.0.tgz +0 -0
- package/po-ui-ng-templates.d.ts +5 -5
- package/public-api.d.ts +1 -1
- package/schematics/README.md +14 -14
- package/schematics/collection.json +50 -50
- package/schematics/ng-add/index.d.ts +8 -8
- package/schematics/ng-add/index.js +60 -60
- package/schematics/ng-add/index.spec.d.ts +1 -1
- package/schematics/ng-add/index.spec.js +90 -90
- package/schematics/ng-add/schema.json +7 -7
- package/schematics/ng-generate/po-page-blocked-user/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-blocked-user/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-blocked-user/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +14 -14
- package/schematics/ng-generate/po-page-blocked-user/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-blocked-user/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-blocked-user/index.js +12 -12
- package/schematics/ng-generate/po-page-blocked-user/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-blocked-user/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-blocked-user/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-blocked-user/schema.js +2 -2
- package/schematics/ng-generate/po-page-blocked-user/schema.json +67 -67
- package/schematics/ng-generate/po-page-change-password/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-change-password/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-change-password/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +14 -14
- package/schematics/ng-generate/po-page-change-password/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-change-password/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-change-password/index.js +12 -12
- package/schematics/ng-generate/po-page-change-password/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-change-password/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-change-password/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-change-password/schema.js +2 -2
- package/schematics/ng-generate/po-page-change-password/schema.json +67 -67
- package/schematics/ng-generate/po-page-dynamic-detail/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-dynamic-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -5
- package/schematics/ng-generate/po-page-dynamic-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-dynamic-detail/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +23 -23
- package/schematics/ng-generate/po-page-dynamic-detail/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-dynamic-detail/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-dynamic-detail/index.js +12 -12
- package/schematics/ng-generate/po-page-dynamic-detail/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-dynamic-detail/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-dynamic-detail/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-dynamic-detail/schema.js +2 -2
- package/schematics/ng-generate/po-page-dynamic-detail/schema.json +67 -67
- package/schematics/ng-generate/po-page-dynamic-edit/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-dynamic-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -5
- package/schematics/ng-generate/po-page-dynamic-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-dynamic-edit/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +23 -23
- package/schematics/ng-generate/po-page-dynamic-edit/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-dynamic-edit/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-dynamic-edit/index.js +12 -12
- package/schematics/ng-generate/po-page-dynamic-edit/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-dynamic-edit/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-dynamic-edit/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-dynamic-edit/schema.js +2 -2
- package/schematics/ng-generate/po-page-dynamic-edit/schema.json +67 -67
- package/schematics/ng-generate/po-page-dynamic-search/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-dynamic-search/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -5
- package/schematics/ng-generate/po-page-dynamic-search/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-dynamic-search/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +28 -28
- package/schematics/ng-generate/po-page-dynamic-search/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-dynamic-search/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-dynamic-search/index.js +12 -12
- package/schematics/ng-generate/po-page-dynamic-search/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-dynamic-search/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-dynamic-search/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-dynamic-search/schema.js +2 -2
- package/schematics/ng-generate/po-page-dynamic-search/schema.json +67 -67
- package/schematics/ng-generate/po-page-dynamic-table/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-dynamic-table/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +5 -5
- package/schematics/ng-generate/po-page-dynamic-table/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-dynamic-table/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +21 -21
- package/schematics/ng-generate/po-page-dynamic-table/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-dynamic-table/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-dynamic-table/index.js +12 -12
- package/schematics/ng-generate/po-page-dynamic-table/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-dynamic-table/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-dynamic-table/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-dynamic-table/schema.js +2 -2
- package/schematics/ng-generate/po-page-dynamic-table/schema.json +67 -67
- package/schematics/ng-generate/po-page-job-scheduler/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-job-scheduler/files/__path__/__name@dasherize__/__name@dasherize__.component.html.template +3 -3
- package/schematics/ng-generate/po-page-job-scheduler/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-job-scheduler/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +17 -17
- package/schematics/ng-generate/po-page-job-scheduler/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-job-scheduler/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-job-scheduler/index.js +12 -12
- package/schematics/ng-generate/po-page-job-scheduler/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-job-scheduler/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-job-scheduler/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-job-scheduler/schema.js +2 -2
- package/schematics/ng-generate/po-page-job-scheduler/schema.json +67 -67
- package/schematics/ng-generate/po-page-login/files/__path__/__name@dasherize__/__name@dasherize__-routing.module.ts.template +14 -14
- package/schematics/ng-generate/po-page-login/files/__path__/__name@dasherize__/__name@dasherize__.component.spec.ts.template +32 -32
- package/schematics/ng-generate/po-page-login/files/__path__/__name@dasherize__/__name@dasherize__.component.ts.template +14 -14
- package/schematics/ng-generate/po-page-login/files/__path__/__name@dasherize__/__name@dasherize__.module.ts.template +19 -19
- package/schematics/ng-generate/po-page-login/index.d.ts +4 -4
- package/schematics/ng-generate/po-page-login/index.js +12 -12
- package/schematics/ng-generate/po-page-login/index.spec.d.ts +1 -1
- package/schematics/ng-generate/po-page-login/index.spec.js +120 -120
- package/schematics/ng-generate/po-page-login/schema.d.ts +3 -3
- package/schematics/ng-generate/po-page-login/schema.js +2 -2
- package/schematics/ng-generate/po-page-login/schema.json +67 -67
- package/po-ui-ng-templates-6.0.0-rc.1.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
7
|
-
xdescribe('po-page-dynamic-search:', () => {
|
|
8
|
-
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
9
|
-
const workspaceOptions = {
|
|
10
|
-
name: 'workspace',
|
|
11
|
-
newProjectRoot: 'projects',
|
|
12
|
-
version: '6.0.0'
|
|
13
|
-
};
|
|
14
|
-
const componentOptions = {
|
|
15
|
-
name: 'po',
|
|
16
|
-
style: 'css',
|
|
17
|
-
skipTests: false
|
|
18
|
-
};
|
|
19
|
-
let appTree;
|
|
20
|
-
beforeEach(() => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
21
|
-
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
|
-
appTree = yield runner
|
|
23
|
-
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
|
-
.toPromise();
|
|
25
|
-
}));
|
|
26
|
-
it('should create <name> component', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
27
|
-
const componentName = 'supply';
|
|
28
|
-
const tree = yield runner
|
|
29
|
-
.runSchematicAsync('po-page-dynamic-search', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
30
|
-
.toPromise();
|
|
31
|
-
const files = tree.files;
|
|
32
|
-
const fullFilePath = (ext) => `/projects/${componentOptions.name}/src/app/${componentName}/${componentName}.component.${ext}`;
|
|
33
|
-
expect(files).toContain(fullFilePath('ts'));
|
|
34
|
-
expect(files).toContain(fullFilePath('html'));
|
|
35
|
-
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
|
-
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
|
-
}));
|
|
38
|
-
it('should create <name> component and <name> module', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
39
|
-
const componentName = 'supply';
|
|
40
|
-
const createModule = true;
|
|
41
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
42
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
43
|
-
const files = tree.files;
|
|
44
|
-
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
|
-
}));
|
|
46
|
-
it('should add declaration component in closest module by default', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
47
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
49
|
-
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
|
-
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
|
-
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
|
-
}));
|
|
53
|
-
it('should import <name> component module if createModule is true', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
54
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
56
|
-
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
|
-
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
|
-
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
|
-
}));
|
|
60
|
-
it('should generate component.less if style is `less`', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
61
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
63
|
-
const files = tree.files;
|
|
64
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
|
-
}));
|
|
66
|
-
it('should generate component with stylesheet `css` if options.style is empty', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
67
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
69
|
-
const files = tree.files;
|
|
70
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
|
-
}));
|
|
72
|
-
it('shouldn`t generate component spec if `skipTests` is true', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
73
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
75
|
-
const files = tree.files;
|
|
76
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
|
-
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
|
-
}));
|
|
79
|
-
it('should generate component in path informed', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
80
|
-
// create customers component module to use with path option
|
|
81
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
|
-
yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
83
|
-
const optionsPath = Object.assign(Object.assign({}, componentOptions), { name: 'wms', path: `/projects/${componentOptions.name}/src/app/customers` });
|
|
84
|
-
const treePath = yield runner.runSchematicAsync('po-page-dynamic-search', optionsPath, appTree).toPromise();
|
|
85
|
-
const files = treePath.files;
|
|
86
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.spec.ts`);
|
|
87
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.ts`);
|
|
88
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
|
-
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
|
-
}));
|
|
91
|
-
it('should use the custom prefix when create component', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
92
|
-
const prefix = 'wms';
|
|
93
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
95
|
-
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
|
-
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
|
-
}));
|
|
98
|
-
it('should use the default prefix when create component if prefix is null', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
99
|
-
const prefix = undefined;
|
|
100
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
102
|
-
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
|
-
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
|
-
}));
|
|
105
|
-
it('should use only the name how prefix when create component if prefix is ""', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
106
|
-
const prefix = '';
|
|
107
|
-
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
|
-
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
109
|
-
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
110
|
-
expect(componentContent).toMatch(new RegExp(`selector: 'customers'`));
|
|
111
|
-
}));
|
|
112
|
-
});
|
|
113
|
-
/** Gets the content of a specified file from a schematic tree. */
|
|
114
|
-
function getFileContent(tree, filePath) {
|
|
115
|
-
const contentBuffer = tree.read(filePath);
|
|
116
|
-
if (!contentBuffer) {
|
|
117
|
-
throw new Error(`Cannot read "${filePath}" because it does not exist.`);
|
|
118
|
-
}
|
|
119
|
-
return contentBuffer.toString();
|
|
120
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const collectionPath = path.join(__dirname, '../../collection.json');
|
|
7
|
+
xdescribe('po-page-dynamic-search:', () => {
|
|
8
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
9
|
+
const workspaceOptions = {
|
|
10
|
+
name: 'workspace',
|
|
11
|
+
newProjectRoot: 'projects',
|
|
12
|
+
version: '6.0.0'
|
|
13
|
+
};
|
|
14
|
+
const componentOptions = {
|
|
15
|
+
name: 'po',
|
|
16
|
+
style: 'css',
|
|
17
|
+
skipTests: false
|
|
18
|
+
};
|
|
19
|
+
let appTree;
|
|
20
|
+
beforeEach(() => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
21
|
+
appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
|
|
22
|
+
appTree = yield runner
|
|
23
|
+
.runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
|
|
24
|
+
.toPromise();
|
|
25
|
+
}));
|
|
26
|
+
it('should create <name> component', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
27
|
+
const componentName = 'supply';
|
|
28
|
+
const tree = yield runner
|
|
29
|
+
.runSchematicAsync('po-page-dynamic-search', Object.assign(Object.assign({}, componentOptions), { name: componentName }), appTree)
|
|
30
|
+
.toPromise();
|
|
31
|
+
const files = tree.files;
|
|
32
|
+
const fullFilePath = (ext) => `/projects/${componentOptions.name}/src/app/${componentName}/${componentName}.component.${ext}`;
|
|
33
|
+
expect(files).toContain(fullFilePath('ts'));
|
|
34
|
+
expect(files).toContain(fullFilePath('html'));
|
|
35
|
+
expect(files).toContain(fullFilePath('spec.ts'));
|
|
36
|
+
expect(files).toContain(fullFilePath(componentOptions.style));
|
|
37
|
+
}));
|
|
38
|
+
it('should create <name> component and <name> module', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
39
|
+
const componentName = 'supply';
|
|
40
|
+
const createModule = true;
|
|
41
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: componentName, createModule, project: 'po' });
|
|
42
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
43
|
+
const files = tree.files;
|
|
44
|
+
expect(files).toContain(`/projects/${options.project}/src/app/${componentName}/${componentName}.module.ts`);
|
|
45
|
+
}));
|
|
46
|
+
it('should add declaration component in closest module by default', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
47
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers' });
|
|
48
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
49
|
+
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
50
|
+
expect(moduleContent).toMatch(/import.*CustomersComponent.*from '.\/customers\/customers.component'/);
|
|
51
|
+
expect(moduleContent).toMatch(/declarations:\s*\[[^\]]+?,\r?\n\s+CustomersComponent\r?\n/m);
|
|
52
|
+
}));
|
|
53
|
+
it('should import <name> component module if createModule is true', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
54
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
55
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
56
|
+
const moduleContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/app.module.ts`);
|
|
57
|
+
expect(moduleContent).toMatch(/import.*CustomersModule.*from '.\/customers\/customers.module'/);
|
|
58
|
+
expect(moduleContent).toMatch(/imports:\s*\[[^\]]+?,\r?\n\s+CustomersModule\r?\n/m);
|
|
59
|
+
}));
|
|
60
|
+
it('should generate component.less if style is `less`', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
61
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: 'less' });
|
|
62
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
63
|
+
const files = tree.files;
|
|
64
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.${options.style}`);
|
|
65
|
+
}));
|
|
66
|
+
it('should generate component with stylesheet `css` if options.style is empty', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
67
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', style: '' });
|
|
68
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
69
|
+
const files = tree.files;
|
|
70
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.css`);
|
|
71
|
+
}));
|
|
72
|
+
it('shouldn`t generate component spec if `skipTests` is true', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
73
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', skipTests: true });
|
|
74
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
75
|
+
const files = tree.files;
|
|
76
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
77
|
+
expect(files).not.toContain(`/projects/${componentOptions.name}/src/app/customers/customers.component.spec.ts`);
|
|
78
|
+
}));
|
|
79
|
+
it('should generate component in path informed', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
80
|
+
// create customers component module to use with path option
|
|
81
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', createModule: true });
|
|
82
|
+
yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
83
|
+
const optionsPath = Object.assign(Object.assign({}, componentOptions), { name: 'wms', path: `/projects/${componentOptions.name}/src/app/customers` });
|
|
84
|
+
const treePath = yield runner.runSchematicAsync('po-page-dynamic-search', optionsPath, appTree).toPromise();
|
|
85
|
+
const files = treePath.files;
|
|
86
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.spec.ts`);
|
|
87
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.ts`);
|
|
88
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.html`);
|
|
89
|
+
expect(files).toContain(`/projects/${componentOptions.name}/src/app/customers/wms/wms.component.${options.style}`);
|
|
90
|
+
}));
|
|
91
|
+
it('should use the custom prefix when create component', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
92
|
+
const prefix = 'wms';
|
|
93
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
94
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
95
|
+
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
96
|
+
expect(componentContent).toMatch(new RegExp(`selector: '${prefix}-customers'`));
|
|
97
|
+
}));
|
|
98
|
+
it('should use the default prefix when create component if prefix is null', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
99
|
+
const prefix = undefined;
|
|
100
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', sample: true, prefix });
|
|
101
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
102
|
+
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
103
|
+
expect(componentContent).toMatch(new RegExp(`selector: 'app-customers'`));
|
|
104
|
+
}));
|
|
105
|
+
it('should use only the name how prefix when create component if prefix is ""', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
106
|
+
const prefix = '';
|
|
107
|
+
const options = Object.assign(Object.assign({}, componentOptions), { name: 'customers', prefix });
|
|
108
|
+
const tree = yield runner.runSchematicAsync('po-page-dynamic-search', options, appTree).toPromise();
|
|
109
|
+
const componentContent = getFileContent(tree, `/projects/${componentOptions.name}/src/app/customers/customers.component.ts`);
|
|
110
|
+
expect(componentContent).toMatch(new RegExp(`selector: 'customers'`));
|
|
111
|
+
}));
|
|
112
|
+
});
|
|
113
|
+
/** Gets the content of a specified file from a schematic tree. */
|
|
114
|
+
function getFileContent(tree, filePath) {
|
|
115
|
+
const contentBuffer = tree.read(filePath);
|
|
116
|
+
if (!contentBuffer) {
|
|
117
|
+
throw new Error(`Cannot read "${filePath}" because it does not exist.`);
|
|
118
|
+
}
|
|
119
|
+
return contentBuffer.toString();
|
|
120
|
+
}
|
|
121
121
|
//# sourceMappingURL=index.spec.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Schema as ComponentSchema } from '@po-ui/ng-schematics/build-component';
|
|
2
|
-
export interface Schema extends ComponentSchema {
|
|
3
|
-
}
|
|
1
|
+
import { Schema as ComponentSchema } from '@po-ui/ng-schematics/build-component';
|
|
2
|
+
export interface Schema extends ComponentSchema {
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "SchematicsPOPageDynamicSearch",
|
|
4
|
-
"title": "Page Dynamic Search Options Schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"style": {
|
|
8
|
-
"description": "The file extension or preprocessor to use for style files.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "css"
|
|
11
|
-
},
|
|
12
|
-
"project": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "The name of the project.",
|
|
15
|
-
"$default": {
|
|
16
|
-
"$source": "projectName"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"routing": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"description": "When true, creates a routing module.",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"createModule": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "When true, create a component module.",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"name": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "The name to use for the component",
|
|
32
|
-
"$default": {
|
|
33
|
-
"$source": "argv",
|
|
34
|
-
"index": 0
|
|
35
|
-
},
|
|
36
|
-
"x-prompt": "What name would you like to use for the component?"
|
|
37
|
-
},
|
|
38
|
-
"skipTests": {
|
|
39
|
-
"description": "When true, does not create \"spec.ts\" test files for the app.",
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": false,
|
|
42
|
-
"alias": "S",
|
|
43
|
-
"x-user-analytics": 12
|
|
44
|
-
},
|
|
45
|
-
"path": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": "path",
|
|
48
|
-
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
49
|
-
"visible": false
|
|
50
|
-
},
|
|
51
|
-
"prefix": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "The prefix to apply to the generated component selector.",
|
|
54
|
-
"alias": "p",
|
|
55
|
-
"oneOf": [
|
|
56
|
-
{
|
|
57
|
-
"maxLength": 0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"minLength": 1,
|
|
61
|
-
"format": "html-selector"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"required": ["name"]
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsPOPageDynamicSearch",
|
|
4
|
+
"title": "Page Dynamic Search Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"style": {
|
|
8
|
+
"description": "The file extension or preprocessor to use for style files.",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"default": "css"
|
|
11
|
+
},
|
|
12
|
+
"project": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The name of the project.",
|
|
15
|
+
"$default": {
|
|
16
|
+
"$source": "projectName"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"routing": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "When true, creates a routing module.",
|
|
22
|
+
"default": false
|
|
23
|
+
},
|
|
24
|
+
"createModule": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "When true, create a component module.",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "The name to use for the component",
|
|
32
|
+
"$default": {
|
|
33
|
+
"$source": "argv",
|
|
34
|
+
"index": 0
|
|
35
|
+
},
|
|
36
|
+
"x-prompt": "What name would you like to use for the component?"
|
|
37
|
+
},
|
|
38
|
+
"skipTests": {
|
|
39
|
+
"description": "When true, does not create \"spec.ts\" test files for the app.",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false,
|
|
42
|
+
"alias": "S",
|
|
43
|
+
"x-user-analytics": 12
|
|
44
|
+
},
|
|
45
|
+
"path": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "path",
|
|
48
|
+
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
|
|
49
|
+
"visible": false
|
|
50
|
+
},
|
|
51
|
+
"prefix": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The prefix to apply to the generated component selector.",
|
|
54
|
+
"alias": "p",
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"maxLength": 0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"format": "html-selector"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": ["name"]
|
|
67
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '', component: <%= classify(name) %>Component }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [RouterModule.forChild(routes)],
|
|
12
|
-
exports: [RouterModule]
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(name) %>RoutingModule { }
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
5
|
+
|
|
6
|
+
const routes: Routes = [
|
|
7
|
+
{ path: '', component: <%= classify(name) %>Component }
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [RouterModule.forChild(routes)],
|
|
12
|
+
exports: [RouterModule]
|
|
13
|
+
})
|
|
14
|
+
export class <%= classify(name) %>RoutingModule { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<po-page-dynamic-table
|
|
2
|
-
p-title="<%= classify(name) %>"
|
|
3
|
-
[p-actions]="actions"
|
|
4
|
-
[p-service-api]="apiService">
|
|
5
|
-
</po-page-dynamic-table>
|
|
1
|
+
<po-page-dynamic-table
|
|
2
|
+
p-title="<%= classify(name) %>"
|
|
3
|
+
[p-actions]="actions"
|
|
4
|
+
[p-service-api]="apiService">
|
|
5
|
+
</po-page-dynamic-table>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
|
|
4
|
-
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
-
|
|
6
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
-
|
|
8
|
-
describe('<%= classify(name) %>Component', () => {
|
|
9
|
-
let component: <%= classify(name) %>Component;
|
|
10
|
-
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
-
|
|
12
|
-
beforeEach(async(() => {
|
|
13
|
-
TestBed.configureTestingModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterTestingModule,
|
|
16
|
-
PoPageDynamicTableModule
|
|
17
|
-
],
|
|
18
|
-
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
-
})
|
|
20
|
-
.compileComponents();
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
beforeEach(() => {
|
|
24
|
-
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
-
component = fixture.componentInstance;
|
|
26
|
-
fixture.detectChanges();
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('should create', () => {
|
|
30
|
-
expect(component).toBeTruthy();
|
|
31
|
-
});
|
|
32
|
-
});
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
|
|
7
|
+
|
|
8
|
+
describe('<%= classify(name) %>Component', () => {
|
|
9
|
+
let component: <%= classify(name) %>Component;
|
|
10
|
+
let fixture: ComponentFixture<<%= classify(name) %>Component>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterTestingModule,
|
|
16
|
+
PoPageDynamicTableModule
|
|
17
|
+
],
|
|
18
|
+
declarations: [ <%= classify(name) %>Component ]
|
|
19
|
+
})
|
|
20
|
+
.compileComponents();
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
fixture = TestBed.createComponent(<%= classify(name) %>Component);
|
|
25
|
+
component = fixture.componentInstance;
|
|
26
|
+
fixture.detectChanges();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should create', () => {
|
|
30
|
+
expect(component).toBeTruthy();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { PoPageDynamicTableActions } from '@po-ui/ng-templates';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: '<%= selector %>',
|
|
7
|
-
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
8
|
-
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
9
|
-
})
|
|
10
|
-
export class <%= classify(name) %>Component implements OnInit {
|
|
11
|
-
|
|
12
|
-
// PLEASE ADD THE API URL SERVICE HERE
|
|
13
|
-
readonly apiService = 'http://localhost:8080/api';
|
|
14
|
-
|
|
15
|
-
readonly actions: PoPageDynamicTableActions = { };
|
|
16
|
-
|
|
17
|
-
constructor() { }
|
|
18
|
-
|
|
19
|
-
ngOnInit() { }
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { PoPageDynamicTableActions } from '@po-ui/ng-templates';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: '<%= selector %>',
|
|
7
|
+
templateUrl: './<%= dasherize(name) %>.component.html',
|
|
8
|
+
styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']
|
|
9
|
+
})
|
|
10
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
11
|
+
|
|
12
|
+
// PLEASE ADD THE API URL SERVICE HERE
|
|
13
|
+
readonly apiService = 'http://localhost:8080/api';
|
|
14
|
+
|
|
15
|
+
readonly actions: PoPageDynamicTableActions = { };
|
|
16
|
+
|
|
17
|
+
constructor() { }
|
|
18
|
+
|
|
19
|
+
ngOnInit() { }
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
-
|
|
6
|
-
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% if (routing) { %>
|
|
7
|
-
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [
|
|
11
|
-
<%= classify(name) %>Component
|
|
12
|
-
],
|
|
13
|
-
imports: [
|
|
14
|
-
CommonModule,
|
|
15
|
-
PoPageDynamicTableModule,<% if (routing) { %>
|
|
16
|
-
<%= classify(name) %>RoutingModule<% } %>
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
export class <%= classify(name) %>Module { }
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
import { PoPageDynamicTableModule } from '@po-ui/ng-templates';
|
|
5
|
+
|
|
6
|
+
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% if (routing) { %>
|
|
7
|
+
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [
|
|
11
|
+
<%= classify(name) %>Component
|
|
12
|
+
],
|
|
13
|
+
imports: [
|
|
14
|
+
CommonModule,
|
|
15
|
+
PoPageDynamicTableModule,<% if (routing) { %>
|
|
16
|
+
<%= classify(name) %>RoutingModule<% } %>
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
export class <%= classify(name) %>Module { }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { Schema as ComponentOptions } from './schema';
|
|
3
|
-
/** Scaffolds a new <name> component with <po-page-dynamic-table> */
|
|
4
|
-
export default function (options: ComponentOptions): Rule;
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { Schema as ComponentOptions } from './schema';
|
|
3
|
+
/** Scaffolds a new <name> component with <po-page-dynamic-table> */
|
|
4
|
+
export default function (options: ComponentOptions): Rule;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const build_component_1 = require("@po-ui/ng-schematics/build-component");
|
|
5
|
-
/** Scaffolds a new <name> component with <po-page-dynamic-table> */
|
|
6
|
-
function default_1(options) {
|
|
7
|
-
return (0, schematics_1.chain)([createPageDynamicTableComponent(options)]);
|
|
8
|
-
}
|
|
9
|
-
exports.default = default_1;
|
|
10
|
-
function createPageDynamicTableComponent(options) {
|
|
11
|
-
return (0, build_component_1.buildComponent)(options);
|
|
12
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const build_component_1 = require("@po-ui/ng-schematics/build-component");
|
|
5
|
+
/** Scaffolds a new <name> component with <po-page-dynamic-table> */
|
|
6
|
+
function default_1(options) {
|
|
7
|
+
return (0, schematics_1.chain)([createPageDynamicTableComponent(options)]);
|
|
8
|
+
}
|
|
9
|
+
exports.default = default_1;
|
|
10
|
+
function createPageDynamicTableComponent(options) {
|
|
11
|
+
return (0, build_component_1.buildComponent)(options);
|
|
12
|
+
}
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|