ngx-wapp-components 1.0.50 → 1.0.51
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/ng-package.json +7 -0
- package/package.json +42 -51
- package/src/lib/button/w-button/w-button.component.html +85 -0
- package/src/lib/button/w-button/w-button.component.scss +218 -0
- package/src/lib/button/w-button/w-button.component.spec.ts +23 -0
- package/src/lib/button/w-button/w-button.component.ts +40 -0
- package/src/lib/button/w-buttons-footer/w-buttons-footer.component.html +3 -0
- package/src/lib/button/w-buttons-footer/w-buttons-footer.component.scss +11 -0
- package/src/lib/button/w-buttons-footer/w-buttons-footer.component.spec.ts +23 -0
- package/src/lib/button/w-buttons-footer/w-buttons-footer.component.ts +10 -0
- package/src/lib/button/w-select-button/w-select-button.component.html +29 -0
- package/src/lib/button/w-select-button/w-select-button.component.scss +65 -0
- package/src/lib/button/w-select-button/w-select-button.component.spec.ts +23 -0
- package/src/lib/button/w-select-button/w-select-button.component.ts +65 -0
- package/src/lib/button/w-toggle-button/w-toggle-button.component.html +33 -0
- package/src/lib/button/w-toggle-button/w-toggle-button.component.scss +112 -0
- package/src/lib/button/w-toggle-button/w-toggle-button.component.spec.ts +23 -0
- package/src/lib/button/w-toggle-button/w-toggle-button.component.ts +75 -0
- package/src/lib/edit/w-edit-calendar/w-edit-calendar.component.html +37 -0
- package/src/lib/edit/w-edit-calendar/w-edit-calendar.component.scss +59 -0
- package/src/lib/edit/w-edit-calendar/w-edit-calendar.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-calendar/w-edit-calendar.component.ts +75 -0
- package/src/lib/edit/w-edit-checkbox/w-edit-checkbox.component.html +55 -0
- package/src/lib/edit/w-edit-checkbox/w-edit-checkbox.component.scss +72 -0
- package/src/lib/edit/w-edit-checkbox/w-edit-checkbox.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-checkbox/w-edit-checkbox.component.ts +70 -0
- package/src/lib/edit/w-edit-input-number/w-edit-input-number.component.html +60 -0
- package/src/lib/edit/w-edit-input-number/w-edit-input-number.component.scss +260 -0
- package/src/lib/edit/w-edit-input-number/w-edit-input-number.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-input-number/w-edit-input-number.component.ts +85 -0
- package/src/lib/edit/w-edit-input-text/w-edit-input-text.component.html +59 -0
- package/src/lib/edit/w-edit-input-text/w-edit-input-text.component.scss +247 -0
- package/src/lib/edit/w-edit-input-text/w-edit-input-text.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-input-text/w-edit-input-text.component.ts +90 -0
- package/src/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.html +92 -0
- package/src/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.scss +234 -0
- package/src/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.ts +71 -0
- package/src/lib/edit/w-edit-multiselect/w-edit-multiselect.component.html +59 -0
- package/src/lib/edit/w-edit-multiselect/w-edit-multiselect.component.scss +227 -0
- package/src/lib/edit/w-edit-multiselect/w-edit-multiselect.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-multiselect/w-edit-multiselect.component.ts +81 -0
- package/src/lib/edit/w-edit-select/w-edit-select.component.html +56 -0
- package/src/lib/edit/w-edit-select/w-edit-select.component.scss +166 -0
- package/src/lib/edit/w-edit-select/w-edit-select.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-select/w-edit-select.component.ts +83 -0
- package/src/lib/edit/w-edit-toggle/w-edit-toggle.component.html +55 -0
- package/src/lib/edit/w-edit-toggle/w-edit-toggle.component.scss +55 -0
- package/src/lib/edit/w-edit-toggle/w-edit-toggle.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-toggle/w-edit-toggle.component.ts +71 -0
- package/src/lib/edit/w-edit-treeselect/w-edit-treeselect.component.html +58 -0
- package/src/lib/edit/w-edit-treeselect/w-edit-treeselect.component.scss +176 -0
- package/src/lib/edit/w-edit-treeselect/w-edit-treeselect.component.spec.ts +23 -0
- package/src/lib/edit/w-edit-treeselect/w-edit-treeselect.component.ts +80 -0
- package/src/lib/file/w-image-cropper/w-image-cropper.component.html +150 -0
- package/src/lib/file/w-image-cropper/w-image-cropper.component.scss +59 -0
- package/src/lib/file/w-image-cropper/w-image-cropper.component.spec.ts +23 -0
- package/src/lib/file/w-image-cropper/w-image-cropper.component.ts +259 -0
- package/src/lib/file/w-image-file-uploader/w-image-file-uploader.component.html +100 -0
- package/src/lib/file/w-image-file-uploader/w-image-file-uploader.component.scss +77 -0
- package/src/lib/file/w-image-file-uploader/w-image-file-uploader.component.spec.ts +23 -0
- package/src/lib/file/w-image-file-uploader/w-image-file-uploader.component.ts +388 -0
- package/src/lib/file/w-preview-image/w-preview-image.component.css +0 -0
- package/src/lib/file/w-preview-image/w-preview-image.component.html +5 -0
- package/src/lib/file/w-preview-image/w-preview-image.component.spec.ts +23 -0
- package/src/lib/file/w-preview-image/w-preview-image.component.ts +17 -0
- package/src/lib/icons/icons.ts +116 -0
- package/src/lib/icons/wapping-icons/w-icons.component.ts +52 -0
- package/src/lib/layout/w-body/w-body.component.html +3 -0
- package/src/lib/layout/w-body/w-body.component.scss +13 -0
- package/src/lib/layout/w-body/w-body.component.spec.ts +23 -0
- package/src/lib/layout/w-body/w-body.component.ts +10 -0
- package/src/lib/layout/w-body-container/w-body-container.component.html +3 -0
- package/src/lib/layout/w-body-container/w-body-container.component.scss +58 -0
- package/src/lib/layout/w-body-container/w-body-container.component.spec.ts +23 -0
- package/src/lib/layout/w-body-container/w-body-container.component.ts +10 -0
- package/src/lib/layout/w-body-grid/w-body-grid.component.html +3 -0
- package/src/lib/layout/w-body-grid/w-body-grid.component.scss +59 -0
- package/src/lib/layout/w-body-grid/w-body-grid.component.spec.ts +23 -0
- package/src/lib/layout/w-body-grid/w-body-grid.component.ts +10 -0
- package/src/lib/layout/w-container/w-container.component.scss +9 -0
- package/src/lib/layout/w-container/w-container.component.ts +14 -0
- package/src/lib/layout/w-footer/w-footer.component.html +11 -0
- package/src/lib/layout/w-footer/w-footer.component.scss +17 -0
- package/src/lib/layout/w-footer/w-footer.component.spec.ts +23 -0
- package/src/lib/layout/w-footer/w-footer.component.ts +19 -0
- package/src/lib/layout/w-header-panel/w-header-panel.component.html +9 -0
- package/src/lib/layout/w-header-panel/w-header-panel.component.scss +29 -0
- package/src/lib/layout/w-header-panel/w-header-panel.component.spec.ts +23 -0
- package/src/lib/layout/w-header-panel/w-header-panel.component.ts +27 -0
- package/src/lib/layout/w-navbar/w-navbar.component.html +26 -0
- package/src/lib/layout/w-navbar/w-navbar.component.scss +26 -0
- package/src/lib/layout/w-navbar/w-navbar.component.spec.ts +23 -0
- package/src/lib/layout/w-navbar/w-navbar.component.ts +48 -0
- package/src/lib/layout/w-panel/w-panel.component.html +6 -0
- package/src/lib/layout/w-panel/w-panel.component.scss +72 -0
- package/src/lib/layout/w-panel/w-panel.component.spec.ts +23 -0
- package/src/lib/layout/w-panel/w-panel.component.ts +13 -0
- package/src/lib/layout/w-panel-grid/w-panel-grid.component.html +3 -0
- package/src/lib/layout/w-panel-grid/w-panel-grid.component.scss +58 -0
- package/src/lib/layout/w-panel-grid/w-panel-grid.component.spec.ts +23 -0
- package/src/lib/layout/w-panel-grid/w-panel-grid.component.ts +10 -0
- package/src/lib/layout/w-panel-title/w-panel-title.component.html +1 -0
- package/src/lib/layout/w-panel-title/w-panel-title.component.scss +6 -0
- package/src/lib/layout/w-panel-title/w-panel-title.component.spec.ts +23 -0
- package/src/lib/layout/w-panel-title/w-panel-title.component.ts +10 -0
- package/src/lib/logos/logos.ts +7 -0
- package/src/lib/logos/wapping-logos/w-logos.component.ts +47 -0
- package/src/lib/misc/w-filter-panel/w-filter-panel.component.html +303 -0
- package/src/lib/misc/w-filter-panel/w-filter-panel.component.scss +391 -0
- package/src/lib/misc/w-filter-panel/w-filter-panel.component.spec.ts +23 -0
- package/src/lib/misc/w-filter-panel/w-filter-panel.component.ts +388 -0
- package/src/lib/misc/w-filter-panel/w-list-field/w-list-field.component.html +21 -0
- package/src/lib/misc/w-filter-panel/w-list-field/w-list-field.component.scss +65 -0
- package/src/lib/misc/w-filter-panel/w-list-field/w-list-field.component.spec.ts +23 -0
- package/src/lib/misc/w-filter-panel/w-list-field/w-list-field.component.ts +73 -0
- package/src/lib/report/w-powerbi-report/w-powerbi-report.component.css +24 -0
- package/src/lib/report/w-powerbi-report/w-powerbi-report.component.html +52 -0
- package/src/lib/report/w-powerbi-report/w-powerbi-report.component.spec.ts +23 -0
- package/src/lib/report/w-powerbi-report/w-powerbi-report.component.ts +170 -0
- package/src/lib/search/w-autocomplete-search/w-autocomplete-search.component.html +92 -0
- package/src/lib/search/w-autocomplete-search/w-autocomplete-search.component.scss +142 -0
- package/src/lib/search/w-autocomplete-search/w-autocomplete-search.component.spec.ts +23 -0
- package/src/lib/search/w-autocomplete-search/w-autocomplete-search.component.ts +94 -0
- package/src/lib/search/w-input-search/w-input-search.component.html +130 -0
- package/src/lib/search/w-input-search/w-input-search.component.scss +158 -0
- package/src/lib/search/w-input-search/w-input-search.component.spec.ts +23 -0
- package/src/lib/search/w-input-search/w-input-search.component.ts +85 -0
- package/src/lib/shared/enums/enum.ts +12 -0
- package/src/lib/shared/models/back-button-config.model.ts +5 -0
- package/src/lib/shared/models/custom-button-config.model.ts +4 -0
- package/{lib/shared/models/embed-config.model.d.ts → src/lib/shared/models/embed-config.model.ts} +2 -2
- package/{lib/shared/models/enums.model.d.ts → src/lib/shared/models/enums.model.ts} +22 -18
- package/{lib/shared/models/filter-panel/field.model.d.ts → src/lib/shared/models/filter-panel/field.model.ts} +20 -2
- package/src/lib/shared/models/filter-panel/filter-field.models.ts +15 -0
- package/src/lib/shared/models/filter-panel/filter-panel-translations.model.ts +29 -0
- package/src/lib/shared/models/filter-panel/qb-filter-entity.model.ts +8 -0
- package/src/lib/shared/models/filter-panel/qb-filter-field.model.ts +12 -0
- package/src/lib/shared/models/filter-panel/qb-operators.model.ts +4 -0
- package/src/lib/shared/models/filter-panel/qb-panel-filter.model.ts +14 -0
- package/src/lib/shared/models/filter-panel/qb-panel-to-fields.model.ts +12 -0
- package/src/lib/shared/models/filter-panel/query-results.model.ts +17 -0
- package/src/lib/shared/models/filter.model.ts +5 -0
- package/src/lib/shared/models/image-b64.model.ts +5 -0
- package/src/lib/shared/models/lazy-element-query-request.model.ts +9 -0
- package/src/lib/shared/models/w-file-b64.model.ts +6 -0
- package/src/lib/shared/models/w-image-cropper-data.model.ts +7 -0
- package/src/lib/shared/models/w-image-file-uploader-config.model.ts +23 -0
- package/src/lib/shared/models/w-select-button-state.model.ts +4 -0
- package/src/lib/shared/models/w-tree-table.model.ts +30 -0
- package/src/lib/shared/models/wapp-table-lazy-loading.model.ts +53 -0
- package/src/lib/shared/models/wapp-table.model.ts +56 -0
- package/src/lib/shared/pipes/color-text.pipe.ts +20 -0
- package/src/lib/shared/service/api/api.service.ts +58 -0
- package/src/lib/shared/services/form-control.service.spec.ts +16 -0
- package/src/lib/shared/services/form-control.service.ts +15 -0
- package/src/lib/shared/services/modal.service.spec.ts +16 -0
- package/src/lib/shared/services/modal.service.ts +71 -0
- package/src/lib/shared/services/tree.service.ts +30 -0
- package/src/lib/sidebar/w-sidebar/w-sidebar.component.html +11 -0
- package/src/lib/sidebar/w-sidebar/w-sidebar.component.scss +69 -0
- package/src/lib/sidebar/w-sidebar/w-sidebar.component.spec.ts +23 -0
- package/src/lib/sidebar/w-sidebar/w-sidebar.component.ts +36 -0
- package/src/lib/tables/w-table/w-table.component.html +230 -0
- package/src/lib/tables/w-table/w-table.component.scss +225 -0
- package/src/lib/tables/w-table/w-table.component.spec.ts +23 -0
- package/src/lib/tables/w-table/w-table.component.ts +188 -0
- package/src/lib/tables/w-table-lazy/w-table-lazy.component.html +198 -0
- package/src/lib/tables/w-table-lazy/w-table-lazy.component.scss +226 -0
- package/src/lib/tables/w-table-lazy/w-table-lazy.component.spec.ts +23 -0
- package/src/lib/tables/w-table-lazy/w-table-lazy.component.ts +217 -0
- package/src/lib/tables/w-tree-table/w-tree-table.component.html +170 -0
- package/src/lib/tables/w-tree-table/w-tree-table.component.scss +221 -0
- package/src/lib/tables/w-tree-table/w-tree-table.component.spec.ts +23 -0
- package/src/lib/tables/w-tree-table/w-tree-table.component.ts +125 -0
- package/src/lib/tabview/w-tabview/w-tabview.component.html +72 -0
- package/src/lib/tabview/w-tabview/w-tabview.component.scss +34 -0
- package/src/lib/tabview/w-tabview/w-tabview.component.spec.ts +23 -0
- package/src/lib/tabview/w-tabview/w-tabview.component.ts +14 -0
- package/src/lib/theme/theme.component.css +0 -0
- package/src/lib/theme/theme.component.html +1 -0
- package/src/lib/theme/theme.component.spec.ts +23 -0
- package/src/lib/theme/theme.component.ts +10 -0
- package/src/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.css +0 -0
- package/src/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.html +1 -0
- package/src/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.spec.ts +23 -0
- package/src/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.ts +16 -0
- package/src/lib/w-clipboard/w-clipboard.component.css +13 -0
- package/src/lib/w-clipboard/w-clipboard.component.html +10 -0
- package/src/lib/w-clipboard/w-clipboard.component.spec.ts +23 -0
- package/src/lib/w-clipboard/w-clipboard.component.ts +32 -0
- package/src/lib/wapp-components.component.spec.ts +23 -0
- package/src/lib/wapp-components.component.ts +15 -0
- package/src/lib/wapp-components.module.ts +241 -0
- package/src/lib/wapp-components.service.spec.ts +16 -0
- package/src/lib/wapp-components.service.ts +9 -0
- package/{public-api.d.ts → src/public-api.ts} +13 -1
- package/src/styles/_variables.scss +427 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2020/lib/button/w-button/w-button.component.mjs +0 -67
- package/esm2020/lib/button/w-buttons-footer/w-buttons-footer.component.mjs +0 -11
- package/esm2020/lib/button/w-select-button/w-select-button.component.mjs +0 -84
- package/esm2020/lib/button/w-toggle-button/w-toggle-button.component.mjs +0 -102
- package/esm2020/lib/edit/w-edit-calendar/w-edit-calendar.component.mjs +0 -104
- package/esm2020/lib/edit/w-edit-checkbox/w-edit-checkbox.component.mjs +0 -89
- package/esm2020/lib/edit/w-edit-input-number/w-edit-input-number.component.mjs +0 -130
- package/esm2020/lib/edit/w-edit-input-text/w-edit-input-text.component.mjs +0 -125
- package/esm2020/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.mjs +0 -108
- package/esm2020/lib/edit/w-edit-multiselect/w-edit-multiselect.component.mjs +0 -110
- package/esm2020/lib/edit/w-edit-select/w-edit-select.component.mjs +0 -115
- package/esm2020/lib/edit/w-edit-toggle/w-edit-toggle.component.mjs +0 -93
- package/esm2020/lib/edit/w-edit-treeselect/w-edit-treeselect.component.mjs +0 -107
- package/esm2020/lib/file/w-image-cropper/w-image-cropper.component.mjs +0 -236
- package/esm2020/lib/file/w-image-file-uploader/w-image-file-uploader.component.mjs +0 -409
- package/esm2020/lib/file/w-preview-image/w-preview-image.component.mjs +0 -20
- package/esm2020/lib/icons/icons.mjs +0 -115
- package/esm2020/lib/icons/wapping-icons/w-icons.component.mjs +0 -57
- package/esm2020/lib/layout/w-body/w-body.component.mjs +0 -18
- package/esm2020/lib/layout/w-body-container/w-body-container.component.mjs +0 -11
- package/esm2020/lib/layout/w-body-grid/w-body-grid.component.mjs +0 -11
- package/esm2020/lib/layout/w-container/w-container.component.mjs +0 -19
- package/esm2020/lib/layout/w-footer/w-footer.component.mjs +0 -27
- package/esm2020/lib/layout/w-header-panel/w-header-panel.component.mjs +0 -36
- package/esm2020/lib/layout/w-navbar/w-navbar.component.mjs +0 -44
- package/esm2020/lib/layout/w-panel/w-panel.component.mjs +0 -29
- package/esm2020/lib/layout/w-panel-grid/w-panel-grid.component.mjs +0 -11
- package/esm2020/lib/layout/w-panel-title/w-panel-title.component.mjs +0 -14
- package/esm2020/lib/logos/logos.mjs +0 -8
- package/esm2020/lib/logos/wapping-logos/w-logos.component.mjs +0 -53
- package/esm2020/lib/misc/w-filter-panel/w-filter-panel.component.mjs +0 -378
- package/esm2020/lib/misc/w-filter-panel/w-list-field/w-list-field.component.mjs +0 -82
- package/esm2020/lib/report/w-powerbi-report/w-powerbi-report.component.mjs +0 -203
- package/esm2020/lib/search/w-autocomplete-search/w-autocomplete-search.component.mjs +0 -106
- package/esm2020/lib/search/w-input-search/w-input-search.component.mjs +0 -109
- package/esm2020/lib/shared/enums/enum.mjs +0 -14
- package/esm2020/lib/shared/models/custom-button-config.model.mjs +0 -2
- package/esm2020/lib/shared/models/embed-config.model.mjs +0 -2
- package/esm2020/lib/shared/models/enums.model.mjs +0 -64
- package/esm2020/lib/shared/models/filter-panel/field.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/filter-field.models.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/filter-panel-translations.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/qb-filter-entity.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/qb-operators.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/qb-panel-filter.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/qb-panel-to-fields.model.mjs +0 -2
- package/esm2020/lib/shared/models/filter-panel/query-results.model.mjs +0 -8
- package/esm2020/lib/shared/models/filter.model.mjs +0 -2
- package/esm2020/lib/shared/models/image-b64.model.mjs +0 -2
- package/esm2020/lib/shared/models/lazy-element-query-request.model.mjs +0 -2
- package/esm2020/lib/shared/models/w-file-b64.model.mjs +0 -2
- package/esm2020/lib/shared/models/w-image-cropper-data.model.mjs +0 -2
- package/esm2020/lib/shared/models/w-image-file-uploader-config.model.mjs +0 -2
- package/esm2020/lib/shared/models/w-select-button-state.model.mjs +0 -2
- package/esm2020/lib/shared/models/w-tree-table.model.mjs +0 -2
- package/esm2020/lib/shared/models/wapp-table-lazy-loading.model.mjs +0 -2
- package/esm2020/lib/shared/models/wapp-table.model.mjs +0 -2
- package/esm2020/lib/shared/pipes/color-text.pipe.mjs +0 -25
- package/esm2020/lib/shared/service/api/api.service.mjs +0 -52
- package/esm2020/lib/shared/services/form-control.service.mjs +0 -18
- package/esm2020/lib/shared/services/modal.service.mjs +0 -62
- package/esm2020/lib/shared/services/tree.service.mjs +0 -30
- package/esm2020/lib/sidebar/w-sidebar/w-sidebar.component.mjs +0 -50
- package/esm2020/lib/tables/w-table/w-table.component.mjs +0 -197
- package/esm2020/lib/tables/w-table-lazy/w-table-lazy.component.mjs +0 -237
- package/esm2020/lib/tables/w-tree-table/w-tree-table.component.mjs +0 -136
- package/esm2020/lib/tabview/w-tabview/w-tabview.component.mjs +0 -27
- package/esm2020/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.mjs +0 -17
- package/esm2020/lib/w-clipboard/w-clipboard.component.mjs +0 -39
- package/esm2020/lib/wapp-components.component.mjs +0 -19
- package/esm2020/lib/wapp-components.module.mjs +0 -430
- package/esm2020/lib/wapp-components.service.mjs +0 -14
- package/esm2020/ngx-wapp-components.mjs +0 -5
- package/esm2020/public-api.mjs +0 -63
- package/fesm2015/ngx-wapp-components.mjs +0 -4359
- package/fesm2015/ngx-wapp-components.mjs.map +0 -1
- package/fesm2020/ngx-wapp-components.mjs +0 -4393
- package/fesm2020/ngx-wapp-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/button/w-button/w-button.component.d.ts +0 -23
- package/lib/button/w-buttons-footer/w-buttons-footer.component.d.ts +0 -5
- package/lib/button/w-select-button/w-select-button.component.d.ts +0 -27
- package/lib/button/w-toggle-button/w-toggle-button.component.d.ts +0 -32
- package/lib/edit/w-edit-calendar/w-edit-calendar.component.d.ts +0 -34
- package/lib/edit/w-edit-checkbox/w-edit-checkbox.component.d.ts +0 -27
- package/lib/edit/w-edit-input-number/w-edit-input-number.component.d.ts +0 -37
- package/lib/edit/w-edit-input-text/w-edit-input-text.component.d.ts +0 -36
- package/lib/edit/w-edit-input-textarea/w-edit-input-textarea.component.d.ts +0 -32
- package/lib/edit/w-edit-multiselect/w-edit-multiselect.component.d.ts +0 -35
- package/lib/edit/w-edit-select/w-edit-select.component.d.ts +0 -35
- package/lib/edit/w-edit-toggle/w-edit-toggle.component.d.ts +0 -28
- package/lib/edit/w-edit-treeselect/w-edit-treeselect.component.d.ts +0 -34
- package/lib/file/w-image-cropper/w-image-cropper.component.d.ts +0 -69
- package/lib/file/w-image-file-uploader/w-image-file-uploader.component.d.ts +0 -70
- package/lib/file/w-preview-image/w-preview-image.component.d.ts +0 -10
- package/lib/icons/icons.d.ts +0 -1
- package/lib/icons/wapping-icons/w-icons.component.d.ts +0 -15
- package/lib/layout/w-body/w-body.component.d.ts +0 -6
- package/lib/layout/w-body-container/w-body-container.component.d.ts +0 -5
- package/lib/layout/w-body-grid/w-body-grid.component.d.ts +0 -5
- package/lib/layout/w-container/w-container.component.d.ts +0 -5
- package/lib/layout/w-footer/w-footer.component.d.ts +0 -10
- package/lib/layout/w-header-panel/w-header-panel.component.d.ts +0 -15
- package/lib/layout/w-navbar/w-navbar.component.d.ts +0 -16
- package/lib/layout/w-panel/w-panel.component.d.ts +0 -9
- package/lib/layout/w-panel-grid/w-panel-grid.component.d.ts +0 -5
- package/lib/layout/w-panel-title/w-panel-title.component.d.ts +0 -6
- package/lib/logos/logos.d.ts +0 -1
- package/lib/logos/wapping-logos/w-logos.component.d.ts +0 -15
- package/lib/misc/w-filter-panel/w-filter-panel.component.d.ts +0 -63
- package/lib/misc/w-filter-panel/w-list-field/w-list-field.component.d.ts +0 -25
- package/lib/report/w-powerbi-report/w-powerbi-report.component.d.ts +0 -42
- package/lib/search/w-autocomplete-search/w-autocomplete-search.component.d.ts +0 -29
- package/lib/search/w-input-search/w-input-search.component.d.ts +0 -33
- package/lib/shared/enums/enum.d.ts +0 -11
- package/lib/shared/models/custom-button-config.model.d.ts +0 -4
- package/lib/shared/models/filter-panel/filter-field.models.d.ts +0 -17
- package/lib/shared/models/filter-panel/filter-panel-translations.model.d.ts +0 -28
- package/lib/shared/models/filter-panel/qb-filter-entity.model.d.ts +0 -7
- package/lib/shared/models/filter-panel/qb-operators.model.d.ts +0 -4
- package/lib/shared/models/filter-panel/qb-panel-filter.model.d.ts +0 -13
- package/lib/shared/models/filter-panel/qb-panel-to-fields.model.d.ts +0 -11
- package/lib/shared/models/filter-panel/query-results.model.d.ts +0 -15
- package/lib/shared/models/filter.model.d.ts +0 -5
- package/lib/shared/models/image-b64.model.d.ts +0 -5
- package/lib/shared/models/lazy-element-query-request.model.d.ts +0 -8
- package/lib/shared/models/w-file-b64.model.d.ts +0 -6
- package/lib/shared/models/w-image-cropper-data.model.d.ts +0 -7
- package/lib/shared/models/w-image-file-uploader-config.model.d.ts +0 -23
- package/lib/shared/models/w-select-button-state.model.d.ts +0 -4
- package/lib/shared/models/w-tree-table.model.d.ts +0 -27
- package/lib/shared/models/wapp-table-lazy-loading.model.d.ts +0 -51
- package/lib/shared/models/wapp-table.model.d.ts +0 -54
- package/lib/shared/pipes/color-text.pipe.d.ts +0 -7
- package/lib/shared/service/api/api.service.d.ts +0 -12
- package/lib/shared/services/form-control.service.d.ts +0 -8
- package/lib/shared/services/modal.service.d.ts +0 -22
- package/lib/shared/services/tree.service.d.ts +0 -8
- package/lib/sidebar/w-sidebar/w-sidebar.component.d.ts +0 -17
- package/lib/tables/w-table/w-table.component.d.ts +0 -58
- package/lib/tables/w-table-lazy/w-table-lazy.component.d.ts +0 -58
- package/lib/tables/w-tree-table/w-tree-table.component.d.ts +0 -41
- package/lib/tabview/w-tabview/w-tabview.component.d.ts +0 -8
- package/lib/view/wapp-view-card-title-text/wapp-view-card-title-text.component.d.ts +0 -9
- package/lib/w-clipboard/w-clipboard.component.d.ts +0 -12
- package/lib/wapp-components.component.d.ts +0 -5
- package/lib/wapp-components.module.d.ts +0 -88
- package/lib/wapp-components.service.d.ts +0 -6
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ngx-wapp-components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "This is a Wapping reusable component library published by Wapping.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"code",
|
|
7
|
-
"wapping",
|
|
8
|
-
"reusable",
|
|
9
|
-
"components",
|
|
10
|
-
"angular"
|
|
11
|
-
],
|
|
12
|
-
"author": {
|
|
13
|
-
"name": "Wapping",
|
|
14
|
-
"email": "marcelfd@wappingweb.com",
|
|
15
|
-
"url": "https://www.wappingweb.com/"
|
|
16
|
-
},
|
|
17
|
-
"peerDependencies": {
|
|
18
|
-
"@angular/cdk": "^15.2.5",
|
|
19
|
-
"@angular/common": "^15.2.0",
|
|
20
|
-
"@angular/core": "^15.2.0",
|
|
21
|
-
"highlight.js": "^11.8.0",
|
|
22
|
-
"ngx-highlightjs": "^8.0.0",
|
|
23
|
-
"primeflex": "^3.3.0",
|
|
24
|
-
"primeicons": "^6.0.1",
|
|
25
|
-
"primeng": "^15.2.1",
|
|
26
|
-
"ngx-image-cropper": "^6.3.4"
|
|
27
|
-
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"types": "./index.d.ts",
|
|
44
|
-
"esm2020": "./esm2020/ngx-wapp-components.mjs",
|
|
45
|
-
"es2020": "./fesm2020/ngx-wapp-components.mjs",
|
|
46
|
-
"es2015": "./fesm2015/ngx-wapp-components.mjs",
|
|
47
|
-
"node": "./fesm2015/ngx-wapp-components.mjs",
|
|
48
|
-
"default": "./fesm2020/ngx-wapp-components.mjs"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-wapp-components",
|
|
3
|
+
"version": "1.0.51",
|
|
4
|
+
"description": "This is a Wapping reusable component library published by Wapping.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"code",
|
|
7
|
+
"wapping",
|
|
8
|
+
"reusable",
|
|
9
|
+
"components",
|
|
10
|
+
"angular"
|
|
11
|
+
],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Wapping",
|
|
14
|
+
"email": "marcelfd@wappingweb.com",
|
|
15
|
+
"url": "https://www.wappingweb.com/"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@angular/cdk": "^15.2.5",
|
|
19
|
+
"@angular/common": "^15.2.0",
|
|
20
|
+
"@angular/core": "^15.2.0",
|
|
21
|
+
"highlight.js": "^11.8.0",
|
|
22
|
+
"ngx-highlightjs": "^8.0.0",
|
|
23
|
+
"primeflex": "^3.3.0",
|
|
24
|
+
"primeicons": "^6.0.1",
|
|
25
|
+
"primeng": "^15.2.1",
|
|
26
|
+
"ngx-image-cropper": "^6.3.4"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"highlight.js": "^11.8.0",
|
|
30
|
+
"ngx-highlightjs": "^8.0.0",
|
|
31
|
+
"primeflex": "^3.3.0",
|
|
32
|
+
"primeicons": "^6.0.1",
|
|
33
|
+
"primeng": "^15.2.1",
|
|
34
|
+
"rxjs": "~7.5.0",
|
|
35
|
+
"zone.js": "~0.11.4",
|
|
36
|
+
"ngx-image-cropper": "^6.3.4"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"tslib": "^2.3.0"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false
|
|
42
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<ng-container *ngIf="type == getButtonTypeName(buttonType.primary); else buttonSecondary">
|
|
2
|
+
<p-button *ngIf="size == getSizeName(sizeType.small)"
|
|
3
|
+
label="{{label}}"
|
|
4
|
+
[icon]="getIcon()"
|
|
5
|
+
iconPos="right"
|
|
6
|
+
styleClass="w-button-small border-none"
|
|
7
|
+
[disabled]="disabled"
|
|
8
|
+
(onClick)="onButtonClick($event)"
|
|
9
|
+
[loading]="loading"
|
|
10
|
+
[pTooltip]="tooltip"
|
|
11
|
+
[tooltipPosition]="tooltipPosition">
|
|
12
|
+
</p-button>
|
|
13
|
+
<p-button *ngIf="size == getSizeName(sizeType.medium)"
|
|
14
|
+
label="{{label}}"
|
|
15
|
+
[icon]="getIcon()"
|
|
16
|
+
iconPos="right"
|
|
17
|
+
styleClass="w-button-medium border-none"
|
|
18
|
+
[disabled]="disabled"
|
|
19
|
+
(onClick)="onButtonClick($event)"
|
|
20
|
+
[loading]="loading"
|
|
21
|
+
[pTooltip]="tooltip"
|
|
22
|
+
[tooltipPosition]="tooltipPosition">
|
|
23
|
+
</p-button>
|
|
24
|
+
<p-button *ngIf="size == getSizeName(sizeType.large)"
|
|
25
|
+
label="{{label}}"
|
|
26
|
+
[icon]="getIcon()"
|
|
27
|
+
iconPos="right"
|
|
28
|
+
styleClass="w-button-large border-none"
|
|
29
|
+
[disabled]="disabled"
|
|
30
|
+
(onClick)="onButtonClick($event)"
|
|
31
|
+
[loading]="loading"
|
|
32
|
+
[pTooltip]="tooltip"
|
|
33
|
+
[tooltipPosition]="tooltipPosition">
|
|
34
|
+
</p-button>
|
|
35
|
+
</ng-container>
|
|
36
|
+
<ng-template #buttonSecondary>
|
|
37
|
+
<ng-container *ngIf="type == getButtonTypeName(buttonType.secondary) || type == getButtonTypeName(buttonType.tertiary); else buttonText">
|
|
38
|
+
<p-button *ngIf="size == getSizeName(sizeType.small)"
|
|
39
|
+
label="{{label}}"
|
|
40
|
+
[icon]="getIcon()"
|
|
41
|
+
iconPos="right"
|
|
42
|
+
[styleClass]="'p-button-outlined ' + (type == getButtonTypeName(buttonType.tertiary) ? 'w-button-small-tertiary' : 'w-button-small p-button-outlined')"
|
|
43
|
+
[disabled]="disabled"
|
|
44
|
+
(onClick)="onButtonClick($event)"
|
|
45
|
+
[loading]="loading"
|
|
46
|
+
[pTooltip]="tooltip"
|
|
47
|
+
[tooltipPosition]="tooltipPosition">
|
|
48
|
+
</p-button>
|
|
49
|
+
<p-button *ngIf="size == getSizeName(sizeType.medium)"
|
|
50
|
+
label="{{label}}"
|
|
51
|
+
[icon]="getIcon()"
|
|
52
|
+
iconPos="right"
|
|
53
|
+
[styleClass]="'p-button-outlined ' + (type == getButtonTypeName(buttonType.tertiary) ? 'w-button-medium-tertiary' : 'w-button-medium p-button-outlined')"
|
|
54
|
+
[disabled]="disabled"
|
|
55
|
+
(onClick)="onButtonClick($event)"
|
|
56
|
+
[loading]="loading"
|
|
57
|
+
[pTooltip]="tooltip"
|
|
58
|
+
[tooltipPosition]="tooltipPosition">
|
|
59
|
+
</p-button>
|
|
60
|
+
<p-button *ngIf="size == getSizeName(sizeType.large)"
|
|
61
|
+
label="{{label}}"
|
|
62
|
+
[icon]="getIcon()"
|
|
63
|
+
iconPos="right"
|
|
64
|
+
[styleClass]="'p-button-outlined ' + (type == getButtonTypeName(buttonType.tertiary) ? 'w-button-large-tertiary' : 'w-button-large p-button-outlined')"
|
|
65
|
+
[disabled]="disabled"
|
|
66
|
+
(onClick)="onButtonClick($event)"
|
|
67
|
+
[loading]="loading"
|
|
68
|
+
[pTooltip]="tooltip"
|
|
69
|
+
[tooltipPosition]="tooltipPosition">
|
|
70
|
+
</p-button>
|
|
71
|
+
</ng-container>
|
|
72
|
+
<ng-template #buttonText>
|
|
73
|
+
<p-button
|
|
74
|
+
label="{{label}}"
|
|
75
|
+
[icon]="getIcon()"
|
|
76
|
+
iconPos="right"
|
|
77
|
+
styleClass="p-button-text w-button-text-small"
|
|
78
|
+
[disabled]="disabled"
|
|
79
|
+
(onClick)="onButtonClick($event)"
|
|
80
|
+
[loading]="loading"
|
|
81
|
+
[pTooltip]="tooltip"
|
|
82
|
+
[tooltipPosition]="tooltipPosition">
|
|
83
|
+
</p-button>
|
|
84
|
+
</ng-template>
|
|
85
|
+
</ng-template>
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
@import '../../../styles/_variables.scss';
|
|
2
|
+
|
|
3
|
+
:host ::ng-deep .w-button-small.p-button {
|
|
4
|
+
height: 32px;
|
|
5
|
+
padding: calc($spacingXS - $borderWidth) calc($spacingM - $borderWidth);
|
|
6
|
+
border-radius: $borderRadius;
|
|
7
|
+
border-width: $borderWidth;
|
|
8
|
+
|
|
9
|
+
:hover{
|
|
10
|
+
border-width: $borderWidth;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p-button-icon{
|
|
14
|
+
margin-left: $spacingXS;
|
|
15
|
+
@extend .icon-medium-size;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-button-label{
|
|
19
|
+
@extend .button-small-typography;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host ::ng-deep .w-button-small.p-button:enabled:hover {
|
|
24
|
+
background-color: $secondary400;
|
|
25
|
+
border-color: $secondary400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host ::ng-deep .w-button-small.p-button:enabled:focus {
|
|
29
|
+
outline: $borderWidth solid $primary50;
|
|
30
|
+
background-color: $primary700;
|
|
31
|
+
@extend .focus;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host ::ng-deep .w-button-small.p-button.p-button-outlined:enabled:hover {
|
|
35
|
+
border-radius: $borderRadius;
|
|
36
|
+
border-width: $borderWidth;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host ::ng-deep .w-button-medium.p-button {
|
|
40
|
+
height: 40px;
|
|
41
|
+
padding: $spacingS $spacingL;
|
|
42
|
+
border-radius: $borderRadius;
|
|
43
|
+
border-width: $borderWidth;
|
|
44
|
+
|
|
45
|
+
.p-button-icon{
|
|
46
|
+
margin-left: $spacingS;
|
|
47
|
+
@extend .icon-medium-size;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.p-button-label{
|
|
51
|
+
@extend .button-medium-typography;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host ::ng-deep .w-button-medium.p-button:enabled:hover {
|
|
56
|
+
background-color: $secondary400;
|
|
57
|
+
border-color: $secondary400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host ::ng-deep .w-button-medium.p-button:enabled:focus {
|
|
61
|
+
@extend .focus;
|
|
62
|
+
outline: $borderWidth solid $primary50;
|
|
63
|
+
background-color: $primary700;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host ::ng-deep .w-button-medium.p-button.p-button-outlined:enabled:hover {
|
|
67
|
+
border-radius: $borderRadius;
|
|
68
|
+
border-width: $borderWidth;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host ::ng-deep .w-button-large.p-button {
|
|
72
|
+
height: 56px;
|
|
73
|
+
padding: $spacingM $spacingXXL;
|
|
74
|
+
border-radius: $borderRadius;
|
|
75
|
+
border-width: $borderWidth;
|
|
76
|
+
|
|
77
|
+
:hover{
|
|
78
|
+
border-width: $borderWidth;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.p-button-icon{
|
|
82
|
+
margin-left: $spacingM;
|
|
83
|
+
@extend .icon-large-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.p-button-label{
|
|
87
|
+
@extend .button-large-typography;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host ::ng-deep .w-button-large.p-button:enabled:hover {
|
|
92
|
+
background-color: $secondary400;
|
|
93
|
+
border-color: $secondary400;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host ::ng-deep .w-button-large.p-button:enabled:focus {
|
|
97
|
+
outline: $borderWidth solid $primary50;
|
|
98
|
+
background-color: $primary700;
|
|
99
|
+
@extend .focus;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host ::ng-deep .w-button-small.p-button.p-button-outlined:enabled:hover,
|
|
103
|
+
:host ::ng-deep .w-button-medium.p-button.p-button-outlined:enabled:hover,
|
|
104
|
+
:host ::ng-deep .w-button-large.p-button.p-button-outlined:enabled:hover {
|
|
105
|
+
border-radius: $borderRadius;
|
|
106
|
+
border-width: $borderWidth;
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
border-color: $secondary400;
|
|
109
|
+
color: $secondary400;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host ::ng-deep .w-button-small.p-button.p-button-outlined:focus,
|
|
113
|
+
:host ::ng-deep .w-button-medium.p-button.p-button-outlined:focus,
|
|
114
|
+
:host ::ng-deep .w-button-large.p-button.p-button-outlined:focus {
|
|
115
|
+
border-color: $primary700;
|
|
116
|
+
color: $primary700;
|
|
117
|
+
background-color: transparent;
|
|
118
|
+
outline: $spacingZero;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host ::ng-deep .w-button-small.p-button.p-button-outlined.p-disabled,
|
|
122
|
+
:host ::ng-deep .w-button-medium.p-button.p-button-outlined.p-disabled,
|
|
123
|
+
:host ::ng-deep .w-button-large.p-button.p-button-outlined.p-disabled{
|
|
124
|
+
background-color: transparent;
|
|
125
|
+
color: $black400;
|
|
126
|
+
border-color: $black200;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host ::ng-deep .w-button-medium.p-button.p-disabled,
|
|
130
|
+
:host ::ng-deep .w-button-small.p-button.p-disabled,
|
|
131
|
+
:host ::ng-deep .w-button-large.p-button.p-disabled {
|
|
132
|
+
background: $black200;
|
|
133
|
+
color: $black400;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host ::ng-deep .w-button-small-tertiary.p-button{
|
|
137
|
+
@extend .w-button-small;
|
|
138
|
+
color: $black700;
|
|
139
|
+
border: $borderWidth solid $black200;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host ::ng-deep .w-button-small-tertiary.p-button.p-button-outlined:enabled:hover{
|
|
143
|
+
border-color: $secondary400;
|
|
144
|
+
background: none;
|
|
145
|
+
color: $secondary400;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host ::ng-deep .w-button-small-tertiary.p-button.p-button-outlined:enabled:focus{
|
|
149
|
+
border: $borderWidth solid $black300;
|
|
150
|
+
color: $black700;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host ::ng-deep .w-button-medium-tertiary.p-button{
|
|
154
|
+
@extend .w-button-medium;
|
|
155
|
+
color: $black700;
|
|
156
|
+
border: $borderWidth solid $black200;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host ::ng-deep .w-button-medium-tertiary.p-button.p-button-outlined:enabled:hover{
|
|
160
|
+
border-color: $secondary400;
|
|
161
|
+
background: none;
|
|
162
|
+
color: $secondary400;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host ::ng-deep .w-button-medium-tertiary.p-button.p-button-outlined:enabled:focus{
|
|
166
|
+
border: $borderWidth solid $black300;
|
|
167
|
+
color: $black700;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host ::ng-deep .w-button-large-tertiary.p-button{
|
|
171
|
+
@extend .w-button-large;
|
|
172
|
+
color: $black700;
|
|
173
|
+
border: $borderWidth solid $black200;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host ::ng-deep .w-button-large-tertiary.p-button.p-button-outlined:enabled:hover{
|
|
177
|
+
border-color: $secondary400;
|
|
178
|
+
background: none;
|
|
179
|
+
color: $secondary400;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:host ::ng-deep .w-button-large-tertiary.p-button.p-button-outlined:enabled:focus{
|
|
183
|
+
border: $borderWidth solid $black300;
|
|
184
|
+
color: $black700;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host ::ng-deep .w-button-small.p-button.p-button-icon-only,
|
|
188
|
+
:host ::ng-deep .w-button-medium.p-button.p-button-icon-only,
|
|
189
|
+
:host ::ng-deep .w-button-large.p-button.p-button-icon-only
|
|
190
|
+
{
|
|
191
|
+
.p-button-icon{
|
|
192
|
+
padding-left: $spacingZero;
|
|
193
|
+
margin-left: $spacingZero;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host ::ng-deep .w-button-text-small.p-button{
|
|
198
|
+
@extend .w-button-small;
|
|
199
|
+
color: $black846;
|
|
200
|
+
border: none;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host ::ng-deep .w-button-text-small.p-button.p-button-text:enabled:hover{
|
|
204
|
+
color: $secondary400;
|
|
205
|
+
background: none;
|
|
206
|
+
border: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:host ::ng-deep .w-button-text-small.p-button.p-button-text:enabled:focus{
|
|
210
|
+
background: none;
|
|
211
|
+
border: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:host ::ng-deep .w-button-small.p-button.p-button-text.p-disabled{
|
|
215
|
+
background: none;
|
|
216
|
+
border: none;
|
|
217
|
+
color: $black400;
|
|
218
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { WButtonComponent } from './w-button.component';
|
|
4
|
+
|
|
5
|
+
describe('WButtonComponent', () => {
|
|
6
|
+
let component: WButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<WButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ WButtonComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(WButtonComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { ButtonType, SizeType } from '../../shared/enums/enum';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'w-button',
|
|
6
|
+
templateUrl: './w-button.component.html',
|
|
7
|
+
styleUrls: ['./w-button.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class WButtonComponent implements OnInit{
|
|
10
|
+
@Input('type') type: string = "primary";
|
|
11
|
+
@Input('label') label!: string;
|
|
12
|
+
@Input('size') size: string = "medium";
|
|
13
|
+
@Input('icon') icon: string = "";
|
|
14
|
+
@Input('tooltipPosition') tooltipPosition: string = "bottom";
|
|
15
|
+
@Input('tooltip') tooltip: string = "";
|
|
16
|
+
@Input('disabled') disabled: boolean = false;
|
|
17
|
+
@Input('loading') loading: boolean = false;
|
|
18
|
+
@Output('onClick') onClick: EventEmitter<MouseEvent> = new EventEmitter();
|
|
19
|
+
|
|
20
|
+
sizeType: typeof SizeType = SizeType;
|
|
21
|
+
buttonType: typeof ButtonType = ButtonType;
|
|
22
|
+
|
|
23
|
+
ngOnInit(): void {}
|
|
24
|
+
|
|
25
|
+
onButtonClick(event: MouseEvent){
|
|
26
|
+
this.onClick.emit(event);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
getIcon(): string{
|
|
30
|
+
return this.icon ? "pi " + this.icon: "";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
getSizeName(value: number): string {
|
|
34
|
+
return SizeType[value];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
getButtonTypeName(value: number): string{
|
|
38
|
+
return ButtonType[value];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { WButtonsFooterComponent } from './w-buttons-footer.component';
|
|
4
|
+
|
|
5
|
+
describe('WButtonsFooterComponent', () => {
|
|
6
|
+
let component: WButtonsFooterComponent;
|
|
7
|
+
let fixture: ComponentFixture<WButtonsFooterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ WButtonsFooterComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(WButtonsFooterComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'w-buttons-footer',
|
|
5
|
+
templateUrl: './w-buttons-footer.component.html',
|
|
6
|
+
styleUrls: ['./w-buttons-footer.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class WButtonsFooterComponent {
|
|
9
|
+
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<ng-container *ngIf="formControl; else noNgControl">
|
|
2
|
+
<p-selectButton [ngClass]="{'w-button-small' : size == getSizeName(sizeType.small),
|
|
3
|
+
'w-button-medium' : size == getSizeName(sizeType.medium),
|
|
4
|
+
'w-button-large' : size == getSizeName(sizeType.large)}"
|
|
5
|
+
[options]="stateOptions"
|
|
6
|
+
[formControl]="formControl"
|
|
7
|
+
[disabled]="disabled"
|
|
8
|
+
optionLabel="label"
|
|
9
|
+
optionValue="value"
|
|
10
|
+
[pTooltip]="tooltip"
|
|
11
|
+
[tooltipPosition]="tooltipPosition"
|
|
12
|
+
(onChange)="onButtonChangedForm($event)">
|
|
13
|
+
</p-selectButton>
|
|
14
|
+
</ng-container>
|
|
15
|
+
<ng-template #noNgControl>
|
|
16
|
+
<p-selectButton [ngClass]="{'w-button-small' : size == getSizeName(sizeType.small),
|
|
17
|
+
'w-button-medium' : size == getSizeName(sizeType.medium),
|
|
18
|
+
'w-button-large' : size == getSizeName(sizeType.large)}"
|
|
19
|
+
[options]="stateOptions"
|
|
20
|
+
[(ngModel)]="ngModelValue"
|
|
21
|
+
[disabled]="disabled"
|
|
22
|
+
optionLabel="label"
|
|
23
|
+
optionValue="value"
|
|
24
|
+
[pTooltip]="tooltip"
|
|
25
|
+
[tooltipPosition]="tooltipPosition"
|
|
26
|
+
(ngModelChange)="onButtonChanged()">
|
|
27
|
+
</p-selectButton>
|
|
28
|
+
</ng-template>
|
|
29
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import '../../../styles/_variables.scss';
|
|
2
|
+
|
|
3
|
+
:host ::ng-deep .w-button-small .p-button {
|
|
4
|
+
height: 32px;
|
|
5
|
+
border-radius: $borderRadius;
|
|
6
|
+
.p-button-label{
|
|
7
|
+
@extend .button-small-typography;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
:host ::ng-deep .w-button-medium .p-button {
|
|
11
|
+
height: 40px;
|
|
12
|
+
border-radius: $borderRadius;
|
|
13
|
+
.p-button-label{
|
|
14
|
+
@extend .button-medium-typography;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
:host ::ng-deep .w-button-large .p-button {
|
|
18
|
+
height: 56px;
|
|
19
|
+
border-radius: $borderRadius;
|
|
20
|
+
.p-button-label{
|
|
21
|
+
@extend .button-large-typography;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
::ng-deep .p-selectbutton .p-button {
|
|
26
|
+
border: 2px solid #e8eaed;
|
|
27
|
+
color: $black700;
|
|
28
|
+
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::ng-deep .p-selectbutton .p-button:first-child {
|
|
32
|
+
border-top-right-radius: 0 !important;
|
|
33
|
+
border-bottom-right-radius: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::ng-deep .p-selectbutton .p-button:last-child {
|
|
37
|
+
border-top-left-radius: 0 !important;
|
|
38
|
+
border-bottom-left-radius: 0 !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host ::ng-deep .w-button-medium .p-button-label {
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
line-height: 16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host ::ng-deep .w-button-small .p-button:focus,
|
|
48
|
+
:host ::ng-deep .w-button-medium .p-button:focus,
|
|
49
|
+
:host ::ng-deep .w-button-large .p-button:focus {
|
|
50
|
+
box-shadow: $spacingZero $spacingZero 3px 3px #00A6E940 !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
::ng-deep .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover,
|
|
54
|
+
::ng-deep .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover,
|
|
55
|
+
::ng-deep .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
|
|
56
|
+
background: transparent;
|
|
57
|
+
border-color: $secondary400;
|
|
58
|
+
color: $secondary400;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
::ng-deep .p-selectbutton .p-button.p-highlight:hover {
|
|
62
|
+
background: $secondary400;
|
|
63
|
+
border-color: $secondary400;
|
|
64
|
+
color: $textWhite;
|
|
65
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { WSelectButtonComponent } from './w-select-button.component';
|
|
4
|
+
|
|
5
|
+
describe('WSelectButtonComponent', () => {
|
|
6
|
+
let component: WSelectButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<WSelectButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ WSelectButtonComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(WSelectButtonComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|