nuxeo-development-framework 5.2.2 → 5.2.4
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/bundles/nuxeo-development-framework.umd.js +7114 -714
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +48 -34
- package/esm2015/lib/components/dynamic-search/dynamic-search.module.js +5 -5
- package/esm2015/lib/components/ndf-datepicker/adapters/hijri-adapter.js +203 -0
- package/esm2015/lib/components/ndf-datepicker/adapters/index.js +3 -0
- package/esm2015/lib/components/ndf-datepicker/adapters/moment-adapter.js +186 -0
- package/esm2015/lib/components/ndf-datepicker/base/base-value-accessor.js +92 -0
- package/esm2015/lib/components/ndf-datepicker/base/index.js +2 -0
- package/esm2015/lib/components/ndf-datepicker/components/base-datepicker.js +37 -0
- package/esm2015/lib/components/ndf-datepicker/components/index.js +4 -0
- package/esm2015/lib/components/ndf-datepicker/components/input-date.component.js +110 -0
- package/esm2015/lib/components/ndf-datepicker/components/input-range-date.component.js +124 -0
- package/esm2015/lib/components/ndf-datepicker/constants/date-locale-keys.js +7 -0
- package/esm2015/lib/components/ndf-datepicker/constants/date-picker.js +2 -0
- package/esm2015/lib/components/ndf-datepicker/constants/date-type.js +5 -0
- package/esm2015/lib/components/ndf-datepicker/constants/formats.js +24 -0
- package/esm2015/lib/components/ndf-datepicker/constants/hijri-dates-names.js +117 -0
- package/esm2015/lib/components/ndf-datepicker/constants/index.js +6 -0
- package/esm2015/lib/components/ndf-datepicker/containers/datepicker-container.js +37 -0
- package/esm2015/lib/components/ndf-datepicker/containers/index.js +3 -0
- package/esm2015/lib/components/ndf-datepicker/containers/ndf-gregorian-datepicker.component.js +105 -0
- package/esm2015/lib/components/ndf-datepicker/containers/ndf-hijri-datepicker.component.js +112 -0
- package/esm2015/lib/components/ndf-datepicker/index.js +10 -0
- package/esm2015/lib/components/ndf-datepicker/models/data-types.js +2 -0
- package/esm2015/lib/components/ndf-datepicker/models/index.js +3 -0
- package/esm2015/lib/components/ndf-datepicker/models/value-object.js +2 -0
- package/esm2015/lib/components/ndf-datepicker/ndf-datepicker.component.js +198 -0
- package/esm2015/lib/components/ndf-datepicker/ndf-datepicker.module.js +66 -0
- package/esm2015/lib/components/ndf-datepicker/services/calendar.service.js +130 -0
- package/esm2015/lib/components/ndf-datepicker/services/index.js +3 -0
- package/esm2015/lib/components/ndf-datepicker/services/localize-state.service.js +41 -0
- package/esm2015/lib/components/no-data-found/index.js +3 -0
- package/esm2015/lib/components/no-data-found/no-data-found.component.js +33 -0
- package/esm2015/lib/components/no-data-found/no-data.module.js +19 -0
- package/esm2015/lib/components/notifications/models/common.js +1 -1
- package/esm2015/lib/components/{dynamic-table → tables/dynamic-table}/directives/empty-state.directive.js +1 -1
- package/esm2015/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.js +353 -0
- package/esm2015/lib/components/tables/dynamic-table/dynamic-table.module.js +51 -0
- package/esm2015/lib/components/tables/dynamic-table/index.js +2 -0
- package/esm2015/lib/components/tables/dynamic-table/public-api.js +5 -0
- package/esm2015/lib/components/tables/dynamic-table/services/dynamic-table.service.js +16 -0
- package/esm2015/lib/components/{dynamic-table → tables}/index.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/components/index.js +6 -0
- package/esm2015/lib/components/tables/ndf-table/components/mode-toggler/mode-toggler.component.js +45 -0
- package/esm2015/lib/components/tables/ndf-table/components/sorting-list/sorting-list.component.js +42 -0
- package/esm2015/lib/components/tables/ndf-table/components/table-columns-toggler/table-columns-toggler.component.js +123 -0
- package/esm2015/lib/components/tables/ndf-table/components/table-export/table-export.component.js +41 -0
- package/esm2015/lib/components/tables/ndf-table/components/text-search/text-search.component.js +74 -0
- package/esm2015/lib/components/tables/ndf-table/constants/index.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/constants/sizes.js +19 -0
- package/esm2015/lib/components/tables/ndf-table/containers/index.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +404 -0
- package/esm2015/lib/components/tables/ndf-table/directives/actions.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/directives/filter-custom.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/directives/fluid-height.directive.js +112 -0
- package/esm2015/lib/components/tables/ndf-table/directives/index.js +5 -0
- package/esm2015/lib/components/tables/ndf-table/directives/search.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-aggregation-field.component.js +91 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-checkbox-radio.component.js +66 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-custom-field.component.js +46 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-predicate-field.component.js +43 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-value-accessor.component.js +34 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/index.js +6 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/field-header.component.js +36 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.js +97 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete.service.js +43 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-collapse-control/filter-collapse-control.component.js +44 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-date-range/filter-date-range.component.js +89 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-empty-message.component.js +30 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-option-text/filter-option-text.component.js +33 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-options-sort/filter-options-sort.component.js +34 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-search-input/filter-search-input.component.js +36 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/html-dialog/html-dialog.component.js +34 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/index.js +10 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-autocomplete/aggregation-autocomplete.component.js +109 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-checkbox/aggregation-checkbox.component.js +65 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-custom/aggregation-custom.component.js +66 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-date-list/aggregation-date-list.component.js +219 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-radio/aggregation-radio.component.js +68 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-select/aggregation-select.component.js +83 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-switch/aggregation-switch.component.js +71 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/index.js +11 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-date-input/predicate-date-input.component.js +146 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-text-input/predicate-text-input.component.js +144 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/common.js +4 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/field.js +6 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/index.js +5 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/operators.js +18 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/sort.js +23 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/type.js +26 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.js +78 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/base-field.js +62 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/custom-field/custom-field.component.js +73 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/base-filters-panel.js +55 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/filters-panel.component.js +122 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/index.js +5 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/predicate-field/predicate-field.component.js +71 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user-switch.component.js +55 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user.service.js +17 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/user-types.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/index.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/autocomplete-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/checkbox-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/custom-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/date-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/dropdown-label-template.directive.js +53 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/dropdown-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/index.js +9 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/radio-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/switch-template.directive.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/filters-panel.module.js +205 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/index.js +12 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-response.model.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/base-field-config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/common.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-config.model.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-fields-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/dropdown-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/index.js +12 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/radio-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/filter-option.model.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/form-query-request.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/index.js +13 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/types-helper.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/value-object.model.js +12 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/autocomplete-filter.pipe.js +27 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/filter.pipe.js +27 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/hash-translate.pipe.js +52 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/index.js +9 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/localized-label.pipe.js +28 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/roles-filters.pipe.js +31 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sanitizer.pipe.js +34 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sort.pipe.js +40 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/tooltip.pipe.js +69 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.js +105 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.js +59 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/filters-query.service.js +117 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/index.js +5 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/ndf-transform.service.js +80 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/index.js +3 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/nxql.js +47 -0
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/object.js +42 -0
- package/esm2015/lib/components/tables/ndf-table/index.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/index.js +8 -0
- package/esm2015/lib/components/tables/ndf-table/models/payload-types.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/search.config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/table-column.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/table-config.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/table-mode.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/table-options.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/models/types.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +104 -0
- package/esm2015/lib/components/tables/ndf-table/public-api.js +8 -0
- package/esm2015/lib/components/tables/ndf-table/services/filters-mapper.service.js +60 -0
- package/esm2015/lib/components/tables/ndf-table/services/index.js +3 -0
- package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +27 -0
- package/esm2015/lib/components/tables/ndf-table/utils/index.js +2 -0
- package/esm2015/lib/components/tables/ndf-table/utils/nxql-query.js +52 -0
- package/esm2015/lib/components/tables/public-api.js +4 -0
- package/esm2015/lib/components/tables/table/dynamic-column/dynamic-column.component.js +68 -0
- package/esm2015/lib/components/tables/table/dynamic-component.js +59 -0
- package/esm2015/lib/components/tables/table/index.js +2 -0
- package/esm2015/lib/components/{table → tables/table}/page-sizes-list/page-sizes-list.component.js +1 -1
- package/esm2015/lib/components/tables/table/public-api.js +6 -0
- package/esm2015/lib/components/tables/table/table/table.component.js +302 -0
- package/esm2015/lib/components/tables/table/table.module.js +69 -0
- package/esm2015/lib/core/services/index.js +3 -0
- package/esm2015/lib/shared/models/index.js +2 -1
- package/esm2015/lib/shared/models/types-helper.js +2 -0
- package/esm2015/public-api.js +4 -7
- package/fesm2015/nuxeo-development-framework.js +6335 -554
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +1 -1
- package/lib/components/dynamic-search/dynamic-search.module.d.ts +1 -1
- package/lib/components/ndf-datepicker/adapters/hijri-adapter.d.ts +35 -0
- package/lib/components/ndf-datepicker/adapters/index.d.ts +2 -0
- package/lib/components/ndf-datepicker/adapters/moment-adapter.d.ts +50 -0
- package/lib/components/ndf-datepicker/base/base-value-accessor.d.ts +38 -0
- package/lib/components/ndf-datepicker/base/index.d.ts +1 -0
- package/lib/components/ndf-datepicker/components/base-datepicker.d.ts +13 -0
- package/lib/components/ndf-datepicker/components/index.d.ts +3 -0
- package/lib/components/ndf-datepicker/components/input-date.component.d.ts +19 -0
- package/lib/components/ndf-datepicker/components/input-range-date.component.d.ts +19 -0
- package/lib/components/ndf-datepicker/constants/date-locale-keys.d.ts +6 -0
- package/lib/components/ndf-datepicker/constants/date-picker.d.ts +1 -0
- package/lib/components/ndf-datepicker/constants/date-type.d.ts +4 -0
- package/lib/components/ndf-datepicker/constants/formats.d.ts +5 -0
- package/lib/components/ndf-datepicker/constants/hijri-dates-names.d.ts +12 -0
- package/lib/components/ndf-datepicker/constants/index.d.ts +5 -0
- package/lib/components/ndf-datepicker/containers/datepicker-container.d.ts +15 -0
- package/lib/components/ndf-datepicker/containers/index.d.ts +2 -0
- package/lib/components/ndf-datepicker/containers/ndf-gregorian-datepicker.component.d.ts +10 -0
- package/lib/components/ndf-datepicker/containers/ndf-hijri-datepicker.component.d.ts +10 -0
- package/lib/components/ndf-datepicker/index.d.ts +9 -0
- package/lib/components/ndf-datepicker/models/data-types.d.ts +11 -0
- package/lib/components/ndf-datepicker/models/index.d.ts +2 -0
- package/lib/components/ndf-datepicker/models/value-object.d.ts +8 -0
- package/lib/components/ndf-datepicker/ndf-datepicker.component.d.ts +42 -0
- package/lib/components/ndf-datepicker/ndf-datepicker.module.d.ts +20 -0
- package/lib/components/ndf-datepicker/services/calendar.service.d.ts +33 -0
- package/lib/components/ndf-datepicker/services/index.d.ts +2 -0
- package/lib/components/ndf-datepicker/services/localize-state.service.d.ts +34 -0
- package/lib/components/no-data-found/index.d.ts +2 -0
- package/lib/components/no-data-found/no-data-found.component.d.ts +8 -0
- package/lib/components/no-data-found/no-data.module.d.ts +9 -0
- package/lib/components/notifications/models/common.d.ts +0 -1
- package/lib/components/{dynamic-table → tables/dynamic-table}/dynamic-table/dynamic-table.component.d.ts +7 -3
- package/lib/components/{dynamic-table → tables/dynamic-table}/dynamic-table.module.d.ts +3 -3
- package/lib/components/tables/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/components/index.d.ts +5 -0
- package/lib/components/tables/ndf-table/components/mode-toggler/mode-toggler.component.d.ts +13 -0
- package/lib/components/tables/ndf-table/components/sorting-list/sorting-list.component.d.ts +12 -0
- package/lib/components/tables/ndf-table/components/table-columns-toggler/table-columns-toggler.component.d.ts +35 -0
- package/lib/components/tables/ndf-table/components/table-export/table-export.component.d.ts +13 -0
- package/lib/components/tables/ndf-table/components/text-search/text-search.component.d.ts +21 -0
- package/lib/components/tables/ndf-table/constants/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/constants/sizes.d.ts +4 -0
- package/lib/components/tables/ndf-table/containers/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +119 -0
- package/lib/components/tables/ndf-table/directives/actions.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/directives/filter-custom.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/directives/fluid-height.directive.d.ts +36 -0
- package/lib/components/tables/ndf-table/directives/index.d.ts +4 -0
- package/lib/components/tables/ndf-table/directives/search.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/base/base-aggregation-field.component.d.ts +35 -0
- package/lib/components/tables/ndf-table/filters-panel/base/base-checkbox-radio.component.d.ts +22 -0
- package/lib/components/tables/ndf-table/filters-panel/base/base-custom-field.component.d.ts +19 -0
- package/lib/components/tables/ndf-table/filters-panel/base/base-predicate-field.component.d.ts +15 -0
- package/lib/components/tables/ndf-table/filters-panel/base/base-value-accessor.component.d.ts +20 -0
- package/lib/components/tables/ndf-table/filters-panel/base/index.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/field-header.component.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.d.ts +35 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete.service.d.ts +13 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-collapse-control/filter-collapse-control.component.d.ts +12 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-date-range/filter-date-range.component.d.ts +16 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-empty-message.component.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-option-text/filter-option-text.component.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-options-sort/filter-options-sort.component.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-search-input/filter-search-input.component.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/html-dialog/html-dialog.component.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/components/__parts/index.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-autocomplete/aggregation-autocomplete.component.d.ts +20 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-checkbox/aggregation-checkbox.component.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-custom/aggregation-custom.component.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-date-list/aggregation-date-list.component.d.ts +41 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-radio/aggregation-radio.component.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-select/aggregation-select.component.d.ts +14 -0
- package/lib/components/tables/ndf-table/filters-panel/components/aggregation-switch/aggregation-switch.component.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/components/index.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/components/predicate-date-input/predicate-date-input.component.d.ts +25 -0
- package/lib/components/tables/ndf-table/filters-panel/components/predicate-text-input/predicate-text-input.component.d.ts +40 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/common.d.ts +3 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/field.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/index.d.ts +4 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/operators.d.ts +17 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/sort.d.ts +2 -0
- package/lib/components/tables/ndf-table/filters-panel/constants/type.d.ts +25 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.d.ts +13 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/base-field.d.ts +21 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/custom-field/custom-field.component.d.ts +13 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/base-filters-panel.d.ts +19 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/filters-panel.component.d.ts +48 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/index.d.ts +4 -0
- package/lib/components/tables/ndf-table/filters-panel/containers/predicate-field/predicate-field.component.d.ts +12 -0
- package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user-switch.component.d.ts +14 -0
- package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user.service.d.ts +8 -0
- package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/user-types.d.ts +29 -0
- package/lib/components/tables/ndf-table/filters-panel/custom-components/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/autocomplete-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/checkbox-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/custom-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/date-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/dropdown-label-template.directive.d.ts +16 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/dropdown-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/index.d.ts +8 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/radio-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/directives/switch-template.directive.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/filters-panel.module.d.ts +65 -0
- package/lib/components/tables/ndf-table/filters-panel/index.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.d.ts +42 -0
- package/lib/components/tables/ndf-table/filters-panel/models/aggregation-response.model.d.ts +20 -0
- package/lib/components/tables/ndf-table/filters-panel/models/base-field-config.d.ts +13 -0
- package/lib/components/tables/ndf-table/filters-panel/models/common.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.d.ts +7 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-config.model.d.ts +14 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.d.ts +35 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-fields-options.d.ts +9 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-options.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/date-options.d.ts +22 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/dropdown-options.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/index.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.d.ts +40 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/radio-options.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.d.ts +6 -0
- package/lib/components/tables/ndf-table/filters-panel/models/filter-option.model.d.ts +13 -0
- package/lib/components/tables/ndf-table/filters-panel/models/form-query-request.d.ts +5 -0
- package/lib/components/tables/ndf-table/filters-panel/models/index.d.ts +12 -0
- package/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.d.ts +7 -0
- package/lib/components/tables/ndf-table/filters-panel/models/types-helper.d.ts +47 -0
- package/lib/components/tables/ndf-table/filters-panel/models/value-object.model.d.ts +18 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/autocomplete-filter.pipe.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/filter.pipe.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/hash-translate.pipe.d.ts +18 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/index.d.ts +8 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/localized-label.pipe.d.ts +14 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/roles-filters.pipe.d.ts +12 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/sanitizer.pipe.d.ts +10 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/sort.pipe.d.ts +11 -0
- package/lib/components/tables/ndf-table/filters-panel/pipes/tooltip.pipe.d.ts +21 -0
- package/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.d.ts +16 -0
- package/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.d.ts +18 -0
- package/lib/components/tables/ndf-table/filters-panel/services/filters-query.service.d.ts +58 -0
- package/lib/components/tables/ndf-table/filters-panel/services/index.d.ts +4 -0
- package/lib/components/tables/ndf-table/filters-panel/services/ndf-transform.service.d.ts +55 -0
- package/lib/components/tables/ndf-table/filters-panel/utility/index.d.ts +2 -0
- package/lib/components/tables/ndf-table/filters-panel/utility/nxql.d.ts +19 -0
- package/lib/components/tables/ndf-table/filters-panel/utility/object.d.ts +7 -0
- package/lib/components/tables/ndf-table/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/models/index.d.ts +7 -0
- package/lib/components/tables/ndf-table/models/payload-types.d.ts +28 -0
- package/lib/components/tables/ndf-table/models/search.config.d.ts +13 -0
- package/lib/components/tables/ndf-table/models/table-column.d.ts +34 -0
- package/lib/components/tables/ndf-table/models/table-config.d.ts +45 -0
- package/lib/components/tables/ndf-table/models/table-mode.d.ts +25 -0
- package/lib/components/tables/ndf-table/models/table-options.d.ts +54 -0
- package/lib/components/tables/ndf-table/models/types.d.ts +38 -0
- package/lib/components/tables/ndf-table/ndf-table.module.d.ts +32 -0
- package/lib/components/tables/ndf-table/public-api.d.ts +7 -0
- package/lib/components/tables/ndf-table/services/filters-mapper.service.d.ts +17 -0
- package/lib/components/tables/ndf-table/services/index.d.ts +2 -0
- package/lib/components/tables/ndf-table/services/ndf-table.service.d.ts +10 -0
- package/lib/components/tables/ndf-table/utils/index.d.ts +1 -0
- package/lib/components/tables/ndf-table/utils/nxql-query.d.ts +10 -0
- package/lib/components/tables/public-api.d.ts +3 -0
- package/lib/components/{table → tables/table}/dynamic-column/dynamic-column.component.d.ts +1 -1
- package/lib/components/{table → tables/table}/dynamic-component.d.ts +1 -1
- package/lib/components/tables/table/index.d.ts +1 -0
- package/lib/components/tables/table/public-api.d.ts +5 -0
- package/lib/components/{table → tables/table}/table/table.component.d.ts +6 -5
- package/lib/components/{table → tables/table}/table.module.d.ts +3 -3
- package/lib/core/services/index.d.ts +2 -0
- package/lib/shared/models/index.d.ts +1 -0
- package/lib/shared/models/types-helper.d.ts +1 -0
- package/package.json +3 -2
- package/public-api.d.ts +3 -6
- package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +0 -349
- package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +0 -51
- package/esm2015/lib/components/dynamic-table/public-api.js +0 -5
- package/esm2015/lib/components/dynamic-table/services/dynamic-table.service.js +0 -16
- package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +0 -68
- package/esm2015/lib/components/table/dynamic-component.js +0 -59
- package/esm2015/lib/components/table/table/table.component.js +0 -300
- package/esm2015/lib/components/table/table.module.js +0 -69
- /package/lib/components/{dynamic-table → tables/dynamic-table}/directives/empty-state.directive.d.ts +0 -0
- /package/lib/components/{dynamic-table → tables/dynamic-table}/index.d.ts +0 -0
- /package/lib/components/{dynamic-table → tables/dynamic-table}/public-api.d.ts +0 -0
- /package/lib/components/{dynamic-table → tables/dynamic-table}/services/dynamic-table.service.d.ts +0 -0
- /package/lib/components/{table → tables/table}/page-sizes-list/page-sizes-list.component.d.ts +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseFiledConfig } from './base-field-config';
|
|
2
|
+
import { AutocompleteOptions, CheckboxOptions, CustomOptions, DateListOptions, DropdownOptions, RadioOptions, SwitchOptions } from './field-options';
|
|
3
|
+
import { FieldSendModeType, Prettify } from './types-helper';
|
|
4
|
+
export declare type AggregationFieldConfig = Prettify<BaseFiledConfig & {
|
|
5
|
+
aggregation: string;
|
|
6
|
+
propertyPath?: string;
|
|
7
|
+
bindLabel?: {
|
|
8
|
+
ar: string;
|
|
9
|
+
en: string;
|
|
10
|
+
};
|
|
11
|
+
bindValue?: string;
|
|
12
|
+
dataTransformer?: 'documentTypee' | 'format' | 'subject' | 'site' | 'store' | 'system' | string;
|
|
13
|
+
sendMode?: FieldSendModeType;
|
|
14
|
+
tooltip?: AggregationTooltipType;
|
|
15
|
+
render: CheckboxOptions | SwitchOptions | RadioOptions | DropdownOptions | AutocompleteOptions | CustomOptions | DateListOptions;
|
|
16
|
+
}>;
|
|
17
|
+
export declare type AggregationTooltipType = {
|
|
18
|
+
properties: Record<string, any>;
|
|
19
|
+
} & (TooltipPlainText | TooltipLocalizedText | TooltipFormattedDate | TooltipTranslationKey | TooltipTranslatedDate);
|
|
20
|
+
export declare type TooltipPlainText = {
|
|
21
|
+
type: 'text';
|
|
22
|
+
separator?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type TooltipLocalizedText = {
|
|
25
|
+
type: 'localizeValue';
|
|
26
|
+
translateKey: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type TooltipFormattedDate = {
|
|
29
|
+
type: 'date';
|
|
30
|
+
format: string;
|
|
31
|
+
separator?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare type TooltipTranslationKey = {
|
|
34
|
+
type: 'translate';
|
|
35
|
+
prefix: string;
|
|
36
|
+
separator?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type TooltipTranslatedDate = {
|
|
39
|
+
type: 'translatedDate';
|
|
40
|
+
format: string;
|
|
41
|
+
translateKey: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface AggregationResponse {
|
|
2
|
+
'entity-type'?: string;
|
|
3
|
+
id: string;
|
|
4
|
+
field?: string;
|
|
5
|
+
properties: Record<string, any>;
|
|
6
|
+
ranges?: any[];
|
|
7
|
+
selection?: any[];
|
|
8
|
+
type?: string;
|
|
9
|
+
buckets: AggregationBucket[];
|
|
10
|
+
extendedBuckets?: AggregationBucket[];
|
|
11
|
+
}
|
|
12
|
+
export interface AggregationBucket {
|
|
13
|
+
key: string;
|
|
14
|
+
docCount: number;
|
|
15
|
+
fetchedKey?: Record<string, any>;
|
|
16
|
+
from?: number;
|
|
17
|
+
to?: number;
|
|
18
|
+
fromAsDate?: Record<string, any>;
|
|
19
|
+
toAsDate?: Record<string, any>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComparisonOperator, TranslateKey } from './types-helper';
|
|
2
|
+
export declare type BaseFiledConfig = {
|
|
3
|
+
label: TranslateKey;
|
|
4
|
+
fieldKey: string;
|
|
5
|
+
values?: unknown;
|
|
6
|
+
prefix?: string;
|
|
7
|
+
order?: number;
|
|
8
|
+
operator?: ComparisonOperator;
|
|
9
|
+
valueType: 'valueObject' | 'property';
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
roles?: string[];
|
|
12
|
+
permission?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldSendModeType, Prettify } from './types-helper';
|
|
2
|
+
import { BaseFiledConfig } from './base-field-config';
|
|
3
|
+
import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
|
|
4
|
+
export declare type CustomFieldConfig = Prettify<BaseFiledConfig & {
|
|
5
|
+
sendMode?: Exclude<FieldSendModeType, 'custom'>;
|
|
6
|
+
render: ActiveUserSwitcherOptions;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AggregationFieldConfig } from './aggregation-field-config';
|
|
2
|
+
import { PredicateFieldConfig } from './predicate-field-config';
|
|
3
|
+
import { CustomFieldConfig } from './custom-field-config';
|
|
4
|
+
export declare type FieldConfigModel = {
|
|
5
|
+
type: 'aggregation';
|
|
6
|
+
config: AggregationFieldConfig;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'predicate';
|
|
9
|
+
config: PredicateFieldConfig;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'custom';
|
|
12
|
+
config: CustomFieldConfig;
|
|
13
|
+
};
|
|
14
|
+
export declare type FieldConfig = PredicateFieldConfig | AggregationFieldConfig | CustomFieldConfig;
|
package/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Prettify } from "../types-helper";
|
|
2
|
+
import { CollapseConfig, FilterConfig, HideLabel, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
|
|
3
|
+
export declare type CheckboxOptions = {
|
|
4
|
+
type: 'checkbox';
|
|
5
|
+
options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & SearchConfig & HideLabel & SortOptions>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComparisonOperator, EvaluatedString, StringOrNumber } from '../types-helper';
|
|
2
|
+
export declare type FilterConfig = {
|
|
3
|
+
filter?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare type HideLabel = {
|
|
6
|
+
hideLabel?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type SearchConfig = {
|
|
9
|
+
search?: {
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
query: {
|
|
12
|
+
field?: string;
|
|
13
|
+
method?: 'get' | 'post';
|
|
14
|
+
url: string;
|
|
15
|
+
operator?: ComparisonOperator;
|
|
16
|
+
template?: EvaluatedString;
|
|
17
|
+
params?: Record<StringOrNumber, StringOrNumber>;
|
|
18
|
+
headers?: Record<StringOrNumber, StringOrNumber>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type CollapseConfig = {
|
|
23
|
+
collapse?: boolean;
|
|
24
|
+
minVisibleCount?: number;
|
|
25
|
+
expandedCount?: number;
|
|
26
|
+
};
|
|
27
|
+
export declare type MultipleConfig = {
|
|
28
|
+
multiple?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare type ShowTotalConfig = {
|
|
31
|
+
showTotal?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare type SortOptions = {
|
|
34
|
+
sort?: boolean;
|
|
35
|
+
};
|
package/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DATE_LIST_VIEW } from '../../constants';
|
|
2
|
+
import { Prettify } from '../types-helper';
|
|
3
|
+
import { HideLabel, ShowTotalConfig } from './common-utils';
|
|
4
|
+
export declare type DateListOptions = {
|
|
5
|
+
type: 'dateList';
|
|
6
|
+
options: Prettify<ShowTotalConfig & HideLabel> & {
|
|
7
|
+
view: (typeof DATE_LIST_VIEW)[keyof typeof DATE_LIST_VIEW];
|
|
8
|
+
minMax?: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Prettify } from '../types-helper';
|
|
2
|
+
import { HideLabel } from './common-utils';
|
|
3
|
+
export declare type DateInputOptions = {
|
|
4
|
+
type: 'date';
|
|
5
|
+
options?: Prettify<HideLabel & {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
debounceTime?: number;
|
|
8
|
+
isDateRange?: boolean;
|
|
9
|
+
showActions?: boolean;
|
|
10
|
+
autoFill?: boolean;
|
|
11
|
+
panelClass?: string;
|
|
12
|
+
endDatePlaceholder?: string;
|
|
13
|
+
startDatePlaceholder?: string;
|
|
14
|
+
startView?: 'month' | 'year' | 'multi-year';
|
|
15
|
+
max?: Date | string | null;
|
|
16
|
+
min?: Date | string | null;
|
|
17
|
+
startAt?: Date | string | null;
|
|
18
|
+
updateLocalLang?: boolean;
|
|
19
|
+
hijriDisplayFormat?: string;
|
|
20
|
+
displayFormat?: string;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './autocomplete-options';
|
|
2
|
+
export * from './checkbox-options';
|
|
3
|
+
export * from './common-utils';
|
|
4
|
+
export * from './custom-options';
|
|
5
|
+
export * from './date-list-options';
|
|
6
|
+
export * from './dropdown-options';
|
|
7
|
+
export * from './input-options';
|
|
8
|
+
export * from './radio-options';
|
|
9
|
+
export * from './switch-options';
|
|
10
|
+
export * from './date-options';
|
|
11
|
+
export * from './custom-options';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { KeyValue } from '@angular/common';
|
|
2
|
+
import { MatDialogConfig } from '@angular/material/dialog';
|
|
3
|
+
import { Prettify } from '../types-helper';
|
|
4
|
+
import { HideLabel } from './common-utils';
|
|
5
|
+
export declare type InputOptions = {
|
|
6
|
+
type: 'input';
|
|
7
|
+
options?: Prettify<HideLabel & {
|
|
8
|
+
inputType?: 'text' | 'search' | 'url';
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
debounceTime?: number;
|
|
11
|
+
mask?: {
|
|
12
|
+
mask: string;
|
|
13
|
+
shownMaskExpression?: string;
|
|
14
|
+
dropSpecialCharacters?: boolean;
|
|
15
|
+
showMaskTyped?: boolean;
|
|
16
|
+
validation?: boolean;
|
|
17
|
+
allowNegativeNumbers?: boolean;
|
|
18
|
+
keepCharacterPositions?: boolean;
|
|
19
|
+
leadZero?: boolean;
|
|
20
|
+
hiddenInput?: boolean;
|
|
21
|
+
clearIfNotMatch?: boolean;
|
|
22
|
+
prefix?: string;
|
|
23
|
+
suffix?: string;
|
|
24
|
+
};
|
|
25
|
+
suffix?: {
|
|
26
|
+
text?: string;
|
|
27
|
+
dropdown?: {
|
|
28
|
+
selectedValue?: string;
|
|
29
|
+
items: KeyValue<string, string>[];
|
|
30
|
+
};
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
dialog?: HtmlDialogConfig;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export declare type HtmlDialogConfig = {
|
|
37
|
+
content: string[];
|
|
38
|
+
title?: string;
|
|
39
|
+
options?: Partial<MatDialogConfig>;
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Prettify } from '../types-helper';
|
|
2
|
+
import { CollapseConfig, FilterConfig, HideLabel, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
|
|
3
|
+
export declare type RadioOptions = {
|
|
4
|
+
type: 'radio';
|
|
5
|
+
options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & SearchConfig & HideLabel & SortOptions>;
|
|
6
|
+
};
|
package/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Prettify } from '../types-helper';
|
|
2
|
+
import { CollapseConfig, FilterConfig, HideLabel, MultipleConfig, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
|
|
3
|
+
export declare type SwitchOptions = {
|
|
4
|
+
type: 'switch';
|
|
5
|
+
options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & MultipleConfig & SearchConfig & HideLabel & SortOptions>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LocalizedValue } from './types-helper';
|
|
2
|
+
import { AggregationTooltipType } from './aggregation-field-config';
|
|
3
|
+
export interface FilterOption {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
count?: string | number;
|
|
8
|
+
localizedLabel?: LocalizedValue | null;
|
|
9
|
+
tooltip?: {
|
|
10
|
+
config: Omit<AggregationTooltipType, 'properties'>;
|
|
11
|
+
values: Record<string, any>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './aggregation-field-config';
|
|
2
|
+
export * from './aggregation-response.model';
|
|
3
|
+
export * from './field-config.model';
|
|
4
|
+
export * from './field-options';
|
|
5
|
+
export * from './field-options/common-utils';
|
|
6
|
+
export * from './filter-option.model';
|
|
7
|
+
export * from './predicate-field-config';
|
|
8
|
+
export * from './types-helper';
|
|
9
|
+
export * from './value-object.model';
|
|
10
|
+
export * from './common';
|
|
11
|
+
export * from './form-query-request';
|
|
12
|
+
export * from './custom-field-config';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseFiledConfig } from './base-field-config';
|
|
2
|
+
import { DateInputOptions, InputOptions } from './field-options';
|
|
3
|
+
import { FieldSendModeType, Prettify } from './types-helper';
|
|
4
|
+
export declare type PredicateFieldConfig = Prettify<BaseFiledConfig & {
|
|
5
|
+
sendMode?: Exclude<FieldSendModeType, 'custom'>;
|
|
6
|
+
render: InputOptions | DateInputOptions;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { AGGREGATION_FIELD_TYPES, COMPARISON_OPERATOR, CUSTOM_FIELD_TYPES, FIELD_SEND_MODE, PREDICATE_FIELD_TYPES } from '../constants';
|
|
3
|
+
import { AggregationFieldConfig } from './aggregation-field-config';
|
|
4
|
+
import { AggregationResponse } from './aggregation-response.model';
|
|
5
|
+
import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
|
|
6
|
+
import { AutocompleteOptions, CheckboxOptions, CustomOptions, DateInputOptions, DateListOptions, DropdownOptions, InputOptions, RadioOptions, SwitchOptions } from './field-options';
|
|
7
|
+
export declare type StringOrNumber = string | number;
|
|
8
|
+
export declare type StrictOmit<K, T extends keyof K> = Omit<K, T>;
|
|
9
|
+
export declare type LocalizedValue = {
|
|
10
|
+
ar: string;
|
|
11
|
+
en: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type Prettify<T> = {
|
|
14
|
+
[k in keyof T]: T[k];
|
|
15
|
+
} & {};
|
|
16
|
+
export declare type ComparisonOperator = (typeof COMPARISON_OPERATOR)[keyof typeof COMPARISON_OPERATOR];
|
|
17
|
+
export declare type AggregationFieldType = (typeof AGGREGATION_FIELD_TYPES)[keyof typeof AGGREGATION_FIELD_TYPES];
|
|
18
|
+
export declare type PredicateFieldType = (typeof PREDICATE_FIELD_TYPES)[keyof typeof PREDICATE_FIELD_TYPES];
|
|
19
|
+
export declare type CustomFieldType = (typeof CUSTOM_FIELD_TYPES)[keyof typeof CUSTOM_FIELD_TYPES];
|
|
20
|
+
export declare type FieldSendModeType = (typeof FIELD_SEND_MODE)[keyof typeof FIELD_SEND_MODE];
|
|
21
|
+
declare type FieldTypeToOptions = {
|
|
22
|
+
dropdown: DropdownOptions['options'];
|
|
23
|
+
checkbox: CheckboxOptions['options'];
|
|
24
|
+
radio: RadioOptions['options'];
|
|
25
|
+
switch: SwitchOptions['options'];
|
|
26
|
+
autocomplete: AutocompleteOptions['options'];
|
|
27
|
+
dateList: DateListOptions['options'];
|
|
28
|
+
input: InputOptions['options'];
|
|
29
|
+
date: DateInputOptions['options'];
|
|
30
|
+
custom: CustomOptions['options'];
|
|
31
|
+
activeUser: ActiveUserSwitcherOptions['options'];
|
|
32
|
+
};
|
|
33
|
+
export declare type OptionsType<T extends AggregationFieldType | PredicateFieldType | CustomFieldType> = T extends keyof FieldTypeToOptions ? FieldTypeToOptions[T] : never;
|
|
34
|
+
export declare type FieldOptionsType = {
|
|
35
|
+
fieldConfig: AggregationFieldConfig;
|
|
36
|
+
aggregation: AggregationResponse;
|
|
37
|
+
};
|
|
38
|
+
export interface NdfTransformerDataModel {
|
|
39
|
+
id?: string;
|
|
40
|
+
code?: string;
|
|
41
|
+
arabicTitle: string;
|
|
42
|
+
englishTitle: string;
|
|
43
|
+
}
|
|
44
|
+
export declare type NdfTransformerFunction = (keys: string[]) => Observable<NdfTransformerDataModel[]>;
|
|
45
|
+
export declare type EvaluatedString = `${string}{{${string}}}${string}`;
|
|
46
|
+
export declare type TranslateKey = string;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VALUE_OBJECT } from '../constants';
|
|
2
|
+
import { ComparisonOperator } from './types-helper';
|
|
3
|
+
export declare type FiledValueObjectType<T = any> = {
|
|
4
|
+
operator?: ComparisonOperator;
|
|
5
|
+
value: T;
|
|
6
|
+
min?: T;
|
|
7
|
+
max?: T;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class FieldValueObject<T = any> implements FiledValueObjectType {
|
|
11
|
+
operator?: ComparisonOperator;
|
|
12
|
+
value: T;
|
|
13
|
+
min?: T;
|
|
14
|
+
max?: T;
|
|
15
|
+
prefix?: string;
|
|
16
|
+
[VALUE_OBJECT]: string;
|
|
17
|
+
constructor(obj: FiledValueObjectType);
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { FilterOption } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AutocompleteFilterPipe implements PipeTransform {
|
|
6
|
+
private _translateService;
|
|
7
|
+
constructor(_translateService: TranslateService);
|
|
8
|
+
transform(items: FilterOption[], searchText: string | FilterOption): FilterOption[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteFilterPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AutocompleteFilterPipe, "autocomplete">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { FilterOption } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FilterPipe implements PipeTransform {
|
|
6
|
+
private _translateService;
|
|
7
|
+
constructor(_translateService: TranslateService);
|
|
8
|
+
transform(items: FilterOption[], searchText: string): FilterOption[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HashTranslatePipe implements PipeTransform {
|
|
6
|
+
private _translate;
|
|
7
|
+
constructor(_translate: TranslateService);
|
|
8
|
+
transform(value: string): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HashTranslatePipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HashTranslatePipe, "hashTranslate">;
|
|
11
|
+
}
|
|
12
|
+
export declare class HashTranslateAsyncPipe implements PipeTransform {
|
|
13
|
+
private _translate;
|
|
14
|
+
constructor(_translate: TranslateService);
|
|
15
|
+
transform(value: string): Observable<string>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HashTranslateAsyncPipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HashTranslateAsyncPipe, "hashTranslateAsync">;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './autocomplete-filter.pipe';
|
|
2
|
+
export * from './filter.pipe';
|
|
3
|
+
export * from './hash-translate.pipe';
|
|
4
|
+
export * from './localized-label.pipe';
|
|
5
|
+
export * from './sanitizer.pipe';
|
|
6
|
+
export * from './sort.pipe';
|
|
7
|
+
export * from './tooltip.pipe';
|
|
8
|
+
export * from './roles-filters.pipe';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { FilterOption } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LocalizedLabelPipe implements PipeTransform {
|
|
6
|
+
private _translate;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
constructor(_translate: TranslateService);
|
|
11
|
+
transform(option: FilterOption, language: 'ar' | 'en' | string): string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedLabelPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedLabelPipe, "localizedLabel">;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { NuxeoService, RolesService } from '../../../../../core/services';
|
|
3
|
+
import { FieldConfigModel } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FiltersByRolesPipe implements PipeTransform {
|
|
6
|
+
private _nuxeoService;
|
|
7
|
+
private _rolesService;
|
|
8
|
+
constructor(_nuxeoService: NuxeoService, _rolesService: RolesService);
|
|
9
|
+
transform(items: FieldConfigModel[]): FieldConfigModel[];
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersByRolesPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FiltersByRolesPipe, "filterByRoles">;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeValue } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SanitizerPipe implements PipeTransform {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
transform(value: string, type?: 'HTML' | 'STYLE' | 'SCRIPT' | 'URL'): SafeValue;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizerPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SanitizerPipe, "sanitizer">;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { FilterOption, SortModel } from '../models';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SortListPipe implements PipeTransform {
|
|
6
|
+
private _translate;
|
|
7
|
+
constructor(_translate: TranslateService);
|
|
8
|
+
transform(items: FilterOption[], sortObj: SortModel): FilterOption[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortListPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortListPipe, "sortList">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { FilterOption } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TooltipPipe implements PipeTransform {
|
|
6
|
+
private _translate;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
currentLanguage: string;
|
|
11
|
+
constructor(_translate: TranslateService);
|
|
12
|
+
transform(option: FilterOption['tooltip'], lang?: string): string;
|
|
13
|
+
private _handleTextType;
|
|
14
|
+
private _handelTranslateType;
|
|
15
|
+
private _handeLocalizeType;
|
|
16
|
+
private _handleDateType;
|
|
17
|
+
private _handleTranslatedDate;
|
|
18
|
+
private _formatDateType;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipPipe, never>;
|
|
20
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TooltipPipe, "optionTooltip">;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { FieldOptionsType, FilterOption } from '../models';
|
|
3
|
+
import { NdfTransformService } from './ndf-transform.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AggregationFieldService {
|
|
6
|
+
private readonly _ndfTransformService;
|
|
7
|
+
constructor(_ndfTransformService: NdfTransformService);
|
|
8
|
+
prepareAggregationFiled(data: FieldOptionsType): Observable<FilterOption[]>;
|
|
9
|
+
private _prepareOptions;
|
|
10
|
+
private _transformData;
|
|
11
|
+
private _createFilterOption;
|
|
12
|
+
private _mapOption;
|
|
13
|
+
private _prepareTooltip;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AggregationFieldService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AggregationFieldService>;
|
|
16
|
+
}
|
package/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, Type, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { AggregationFieldType, CustomFieldType, PredicateFieldType } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare type ComponentType = AggregationFieldType | PredicateFieldType | CustomFieldType;
|
|
5
|
+
export declare class DynamicComponentLoaderService {
|
|
6
|
+
private _factoryResolver;
|
|
7
|
+
private readonly _components;
|
|
8
|
+
constructor(_factoryResolver: ComponentFactoryResolver);
|
|
9
|
+
registerComponent<T>(key: ComponentType, component: Type<T>): void;
|
|
10
|
+
renderComponent(key: ComponentType, vcr: ViewContainerRef): import("@angular/core").ComponentRef<any>;
|
|
11
|
+
loadComponent<T>(componentAngularType: Type<T>, vcr: ViewContainerRef): import("@angular/core").ComponentRef<T>;
|
|
12
|
+
private _registerCustomComponent;
|
|
13
|
+
private _registerAggregationsComponents;
|
|
14
|
+
private _registerPredicateComponents;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentLoaderService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentLoaderService>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FilterQueryService {
|
|
3
|
+
private readonly keyToShortMap;
|
|
4
|
+
private readonly shortToKeyMap;
|
|
5
|
+
private readonly defaultShortKeys;
|
|
6
|
+
constructor();
|
|
7
|
+
registerKeys(keys: Record<string, string>): void;
|
|
8
|
+
registerKey(longKey: string, shortKey: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Encodes a query object into a URL-safe string by transforming its keys
|
|
11
|
+
* and converting it to a JSON string.
|
|
12
|
+
*
|
|
13
|
+
* @param {Record<string, any>} query - The query object to encode.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Example query object
|
|
17
|
+
* const query = {
|
|
18
|
+
* // Predicate field (payload sent)
|
|
19
|
+
* 'locRef:boxCode': {
|
|
20
|
+
* value: '1',
|
|
21
|
+
* operator: 'LIKE',
|
|
22
|
+
* },
|
|
23
|
+
*
|
|
24
|
+
* // Aggregation field (query parameter)
|
|
25
|
+
* 'locRef:boxCode': [1]
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* const encodedQuery = encodeQuery(query);
|
|
29
|
+
* console.log(encodedQuery); // Encoded string representation
|
|
30
|
+
*
|
|
31
|
+
* @returns {string} - The URL-encoded JSON string representation of the query object.
|
|
32
|
+
*/
|
|
33
|
+
encodeQuery(query: Record<string, any>): string;
|
|
34
|
+
/**
|
|
35
|
+
* Decodes a URL-encoded query string back into its original object form.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} encodedQuery - The URL-encoded JSON string representation of a query.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* const encodedQuery = "%7B%22locRef%3AboxCode%22%3A%7B%22value%22%3A%221%22%2C%22operator%22%3A%22LIKE%22%7D%7D";
|
|
41
|
+
* const decodedQuery = decodeQuery(encodedQuery);
|
|
42
|
+
* console.log(decodedQuery);
|
|
43
|
+
* Output:
|
|
44
|
+
* {
|
|
45
|
+
* 'locRef:boxCode': {
|
|
46
|
+
* value: '1',
|
|
47
|
+
* operator: 'LIKE'
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* @returns {Record<string, any> | null} - The decoded query object, or `null` if decoding fails.
|
|
52
|
+
*/
|
|
53
|
+
decodeQuery(encodedQuery: string): Record<string, any> | null;
|
|
54
|
+
private initializeDefaultKeys;
|
|
55
|
+
private transformObject;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterQueryService, never>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FilterQueryService>;
|
|
58
|
+
}
|