nuxeo-development-framework 5.3.6 → 5.3.7
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 +575 -202
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-config-editor/containers/monaco-editor.component.js +1 -2
- package/esm2015/lib/components/ndf-filters/base/base-aggregation-field.component.js +91 -0
- package/esm2015/lib/components/ndf-filters/base/base-checkbox-radio.component.js +66 -0
- package/esm2015/lib/components/ndf-filters/base/base-custom-field.component.js +46 -0
- package/esm2015/lib/components/ndf-filters/base/base-predicate-field.component.js +43 -0
- package/esm2015/lib/components/ndf-filters/base/base-value-accessor.component.js +34 -0
- package/esm2015/lib/components/ndf-filters/base/index.js +6 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/field-header.component.js +1 -1
- package/esm2015/lib/components/ndf-filters/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.js +97 -0
- package/esm2015/lib/components/ndf-filters/components/__parts/filter-autocomplete-input/filter-autocomplete.service.js +43 -0
- package/esm2015/lib/components/ndf-filters/components/__parts/filter-collapse-control/filter-collapse-control.component.js +44 -0
- package/esm2015/lib/components/ndf-filters/components/__parts/filter-date-range/filter-date-range.component.js +89 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-empty-message.component.js +1 -1
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-option-text/filter-option-text.component.js +1 -1
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-options-sort/filter-options-sort.component.js +1 -1
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-search-input/filter-search-input.component.js +1 -1
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/html-dialog/html-dialog.component.js +2 -2
- package/esm2015/lib/components/ndf-filters/components/__parts/index.js +10 -0
- package/esm2015/lib/components/ndf-filters/components/aggregation-autocomplete/aggregation-autocomplete.component.js +109 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-checkbox/aggregation-checkbox.component.js +1 -1
- package/esm2015/lib/components/ndf-filters/components/aggregation-custom/aggregation-custom.component.js +66 -0
- package/esm2015/lib/components/ndf-filters/components/aggregation-date-list/aggregation-date-list.component.js +219 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-radio/aggregation-radio.component.js +1 -1
- package/esm2015/lib/components/ndf-filters/components/aggregation-select/aggregation-select.component.js +83 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-switch/aggregation-switch.component.js +1 -1
- package/esm2015/lib/components/ndf-filters/components/index.js +11 -0
- package/esm2015/lib/components/ndf-filters/components/predicate-date-input/predicate-date-input.component.js +146 -0
- package/esm2015/lib/components/ndf-filters/components/predicate-text-input/predicate-text-input.component.js +144 -0
- package/esm2015/lib/components/ndf-filters/constants/common.js +4 -0
- package/esm2015/lib/components/ndf-filters/constants/field.js +6 -0
- package/esm2015/lib/components/ndf-filters/constants/index.js +5 -0
- package/esm2015/lib/components/ndf-filters/constants/operators.js +18 -0
- package/esm2015/lib/components/ndf-filters/constants/sort.js +23 -0
- package/esm2015/lib/components/ndf-filters/constants/type.js +26 -0
- package/esm2015/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.js +78 -0
- package/esm2015/lib/components/ndf-filters/containers/base-field.js +62 -0
- package/esm2015/lib/components/ndf-filters/containers/custom-field/custom-field.component.js +73 -0
- package/esm2015/lib/components/ndf-filters/containers/filters-panel/base-filters-panel.js +55 -0
- package/esm2015/lib/components/ndf-filters/containers/filters-panel/filters-panel.component.js +127 -0
- package/esm2015/lib/components/ndf-filters/containers/index.js +5 -0
- package/esm2015/lib/components/ndf-filters/containers/predicate-field/predicate-field.component.js +71 -0
- package/esm2015/lib/components/ndf-filters/custom-components/active-user-switch/active-user-switch.component.js +55 -0
- package/esm2015/lib/components/ndf-filters/custom-components/active-user-switch/active-user.service.js +17 -0
- package/esm2015/lib/components/ndf-filters/custom-components/active-user-switch/user-types.js +2 -0
- package/esm2015/lib/components/ndf-filters/custom-components/index.js +2 -0
- package/esm2015/lib/components/ndf-filters/directives/autocomplete-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/directives/checkbox-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/directives/custom-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/directives/date-template.directive.js +28 -0
- package/esm2015/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/dropdown-label-template.directive.js +1 -1
- package/esm2015/lib/components/ndf-filters/directives/dropdown-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/directives/index.js +9 -0
- package/esm2015/lib/components/ndf-filters/directives/radio-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/directives/switch-template.directive.js +28 -0
- package/esm2015/lib/components/ndf-filters/index.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/aggregation-field-config.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/aggregation-response.model.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/base-field-config.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/common.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/custom-field-config.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-config.model.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/autocomplete-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/checkbox-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/common-utils.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/custom-fields-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/custom-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/date-list-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/date-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/dropdown-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/index.js +12 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/input-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/radio-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/field-options/switch-options.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/filter-option.model.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/form-query-request.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/index.js +14 -0
- package/esm2015/lib/components/ndf-filters/models/operator-value-object.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/predicate-field-config.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/types-helper.js +2 -0
- package/esm2015/lib/components/ndf-filters/models/value-object.model.js +12 -0
- package/esm2015/lib/components/ndf-filters/ndf-filters-panel.module.js +207 -0
- package/esm2015/lib/components/ndf-filters/pipes/autocomplete-filter.pipe.js +27 -0
- package/esm2015/lib/components/ndf-filters/pipes/check-condition.pipe.js +32 -0
- package/esm2015/lib/components/ndf-filters/pipes/filter.pipe.js +27 -0
- package/esm2015/lib/components/ndf-filters/pipes/hash-translate.pipe.js +52 -0
- package/esm2015/lib/components/ndf-filters/pipes/index.js +10 -0
- package/esm2015/lib/components/ndf-filters/pipes/localized-label.pipe.js +28 -0
- package/esm2015/lib/components/ndf-filters/pipes/roles-filters.pipe.js +31 -0
- package/esm2015/lib/components/ndf-filters/pipes/sanitizer.pipe.js +34 -0
- package/esm2015/lib/components/ndf-filters/pipes/sort.pipe.js +40 -0
- package/esm2015/lib/components/ndf-filters/pipes/tooltip.pipe.js +69 -0
- package/esm2015/lib/components/ndf-filters/public-api.js +12 -0
- package/esm2015/lib/components/ndf-filters/services/aggregation-field.service.js +105 -0
- package/esm2015/lib/components/ndf-filters/services/dynamic-component-loader.service.js +59 -0
- package/esm2015/lib/components/ndf-filters/services/filters-mapper.service.js +60 -0
- package/esm2015/lib/components/ndf-filters/services/filters-query.service.js +117 -0
- package/esm2015/lib/components/ndf-filters/services/index.js +5 -0
- package/esm2015/lib/components/ndf-filters/utility/index.js +4 -0
- package/esm2015/lib/components/ndf-filters/utility/nxql-query.js +53 -0
- package/esm2015/lib/components/ndf-filters/utility/nxql.js +47 -0
- package/esm2015/lib/components/ndf-filters/utility/object.js +42 -0
- package/esm2015/lib/components/ndf-tabs/tab.type.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +3 -3
- package/esm2015/lib/components/reports/ndf-reports/models/common.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +6 -5
- package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +1 -1
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/components/text-search/text-search.component.js +2 -2
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +26 -25
- package/esm2015/lib/components/tables/ndf-table/models/payload-types.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/search.config.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-mode.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/types.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +5 -5
- package/esm2015/lib/components/tables/ndf-table/public-api.js +1 -2
- package/esm2015/lib/components/tables/ndf-table/services/index.js +1 -2
- package/esm2015/lib/shared/evaluator/evaluator.js +332 -0
- package/esm2015/lib/shared/evaluator/index.js +2 -0
- package/esm2015/lib/shared/evaluator/types.js +2 -0
- package/esm2015/lib/shared/models/index.js +2 -1
- package/esm2015/lib/shared/models/type-helpers.js +2 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +532 -169
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/base-aggregation-field.component.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/base-value-accessor.component.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-autocomplete-input/filter-autocomplete.service.d.ts +3 -2
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-date-range/filter-date-range.component.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/html-dialog/html-dialog.component.d.ts +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/filters-panel/base-filters-panel.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/filters-panel/filters-panel.component.d.ts +1 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/custom-components/active-user-switch/active-user.service.d.ts +1 -1
- package/lib/components/ndf-filters/index.d.ts +1 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/aggregation-field-config.d.ts +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/base-field-config.d.ts +3 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/custom-field-config.d.ts +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/autocomplete-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/checkbox-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/common-utils.d.ts +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/custom-fields-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/date-list-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/date-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/dropdown-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/input-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/radio-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/switch-options.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/filter-option.model.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/index.d.ts +1 -0
- package/lib/components/ndf-filters/models/operator-value-object.d.ts +6 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/predicate-field-config.d.ts +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/types-helper.d.ts +0 -11
- package/lib/components/ndf-filters/ndf-filters-panel.module.d.ts +66 -0
- package/lib/components/ndf-filters/pipes/check-condition.pipe.d.ts +12 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/index.d.ts +1 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/roles-filters.pipe.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel/index.d.ts → ndf-filters/public-api.d.ts} +2 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/services/aggregation-field.service.d.ts +1 -1
- package/lib/components/{tables/ndf-table → ndf-filters}/services/filters-mapper.service.d.ts +1 -1
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/services/index.d.ts +1 -0
- package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/utility/index.d.ts +1 -0
- package/lib/components/{tables/ndf-table/utils → ndf-filters/utility}/nxql-query.d.ts +4 -3
- package/lib/components/ndf-tabs/tab.type.d.ts +1 -1
- package/lib/components/reports/ndf-reports/base/base-report.d.ts +3 -3
- package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +1 -1
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +3 -2
- package/lib/components/reports/ndf-reports/models/common.d.ts +2 -2
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -1
- package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +2 -2
- package/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.d.ts +1 -1
- package/lib/components/tables/ndf-table/components/text-search/text-search.component.d.ts +1 -1
- package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +3 -2
- package/lib/components/tables/ndf-table/models/payload-types.d.ts +0 -6
- package/lib/components/tables/ndf-table/models/search.config.d.ts +1 -1
- package/lib/components/tables/ndf-table/models/table-mode.d.ts +1 -1
- package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
- package/lib/components/tables/ndf-table/models/types.d.ts +1 -1
- package/lib/components/tables/ndf-table/ndf-table.module.d.ts +2 -2
- package/lib/components/tables/ndf-table/public-api.d.ts +0 -1
- package/lib/components/tables/ndf-table/services/index.d.ts +0 -1
- package/lib/shared/evaluator/evaluator.d.ts +79 -0
- package/lib/shared/evaluator/index.d.ts +1 -0
- package/lib/shared/evaluator/types.d.ts +14 -0
- package/lib/shared/models/index.d.ts +1 -0
- package/lib/shared/models/type-helpers.d.ts +11 -0
- package/package.json +3 -2
- package/public-api.d.ts +1 -0
- package/src/docs/ndf-table.doc.md +287 -217
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-aggregation-field.component.js +0 -91
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-checkbox-radio.component.js +0 -66
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-custom-field.component.js +0 -46
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-predicate-field.component.js +0 -43
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-value-accessor.component.js +0 -34
- package/esm2015/lib/components/tables/ndf-table/filters-panel/base/index.js +0 -6
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.js +0 -97
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete.service.js +0 -43
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-collapse-control/filter-collapse-control.component.js +0 -44
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-date-range/filter-date-range.component.js +0 -89
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/index.js +0 -10
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-autocomplete/aggregation-autocomplete.component.js +0 -109
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-custom/aggregation-custom.component.js +0 -66
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-date-list/aggregation-date-list.component.js +0 -219
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-select/aggregation-select.component.js +0 -83
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/index.js +0 -11
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-date-input/predicate-date-input.component.js +0 -146
- package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-text-input/predicate-text-input.component.js +0 -144
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/common.js +0 -4
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/field.js +0 -6
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/index.js +0 -5
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/operators.js +0 -18
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/sort.js +0 -23
- package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/type.js +0 -26
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.js +0 -78
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/base-field.js +0 -62
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/custom-field/custom-field.component.js +0 -73
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/base-filters-panel.js +0 -55
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/filters-panel.component.js +0 -122
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/index.js +0 -5
- package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/predicate-field/predicate-field.component.js +0 -71
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user-switch.component.js +0 -55
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user.service.js +0 -17
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/user-types.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/index.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/autocomplete-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/checkbox-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/custom-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/date-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/dropdown-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/index.js +0 -9
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/radio-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/switch-template.directive.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/filters-panel.module.js +0 -205
- package/esm2015/lib/components/tables/ndf-table/filters-panel/index.js +0 -11
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-response.model.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/base-field-config.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/common.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-config.model.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-fields-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/dropdown-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/index.js +0 -12
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/radio-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/filter-option.model.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/form-query-request.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/index.js +0 -13
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/types-helper.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/filters-panel/models/value-object.model.js +0 -12
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/autocomplete-filter.pipe.js +0 -27
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/filter.pipe.js +0 -27
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/hash-translate.pipe.js +0 -52
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/index.js +0 -9
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/localized-label.pipe.js +0 -28
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/roles-filters.pipe.js +0 -31
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sanitizer.pipe.js +0 -34
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sort.pipe.js +0 -40
- package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/tooltip.pipe.js +0 -69
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.js +0 -105
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.js +0 -59
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/filters-query.service.js +0 -117
- package/esm2015/lib/components/tables/ndf-table/filters-panel/services/index.js +0 -4
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/index.js +0 -3
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/nxql.js +0 -47
- package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/object.js +0 -42
- package/esm2015/lib/components/tables/ndf-table/services/filters-mapper.service.js +0 -60
- package/esm2015/lib/components/tables/ndf-table/utils/index.js +0 -2
- package/esm2015/lib/components/tables/ndf-table/utils/nxql-query.js +0 -52
- package/lib/components/tables/ndf-table/filters-panel/filters-panel.module.d.ts +0 -65
- package/lib/components/tables/ndf-table/utils/index.d.ts +0 -1
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/base-checkbox-radio.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/base-custom-field.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/base-predicate-field.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/base/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/field-header.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-collapse-control/filter-collapse-control.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-empty-message.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-option-text/filter-option-text.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-options-sort/filter-options-sort.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/filter-search-input/filter-search-input.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/__parts/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-autocomplete/aggregation-autocomplete.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-checkbox/aggregation-checkbox.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-custom/aggregation-custom.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-date-list/aggregation-date-list.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-radio/aggregation-radio.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-select/aggregation-select.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/aggregation-switch/aggregation-switch.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/predicate-date-input/predicate-date-input.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/components/predicate-text-input/predicate-text-input.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/common.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/field.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/operators.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/sort.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/constants/type.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/aggregation-field/aggregation-field.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/base-field.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/custom-field/custom-field.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/containers/predicate-field/predicate-field.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/custom-components/active-user-switch/active-user-switch.component.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/custom-components/active-user-switch/user-types.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/custom-components/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/autocomplete-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/checkbox-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/custom-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/date-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/dropdown-label-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/dropdown-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/radio-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/directives/switch-template.directive.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/aggregation-response.model.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/common.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-config.model.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/custom-options.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/field-options/index.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/form-query-request.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/models/value-object.model.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/autocomplete-filter.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/filter.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/hash-translate.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/localized-label.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/sanitizer.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/sort.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/pipes/tooltip.pipe.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/services/dynamic-component-loader.service.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/services/filters-query.service.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/utility/nxql.d.ts +0 -0
- /package/lib/components/{tables/ndf-table/filters-panel → ndf-filters}/utility/object.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/dialog'), require('@angular/router'), require('@ngx-translate/core'), require('rxjs/operators'), require('rxjs'), require('@angular/animations'), require('ngx-toastr'), require('crypto-js'), require('@angular/cdk/bidi'), require('@angular/common/http'), require('keycloak-angular'), require('ngx-cookie-service'), require('@angular/cdk/coercion'), require('@angular/material/icon'), require('@angular/material/progress-spinner'), require('@angular/material/tooltip'), require('lodash-es'), require('moment'), require('lodash/omit'), require('lodash/assign'), require('lodash/cloneDeep'), require('lodash'), require('@angular/platform-browser'), require('moment-es6'), require('moment-hijri'), require('ngx-infinite-scroll'), require('@angular/material/list'), require('@angular/material/menu'), require('angular-ng-autocomplete'), require('@angular/material/core'), require('@angular/cdk/clipboard'), require('ts-cacheable'), require('@ng-select/ng-select'), require('@angular/material/form-field'), require('@angular/material/chips'), require('@angular/material/expansion'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/datepicker'), require('@angular/material/input'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('@busacca/ng-pick-datetime'), require('@mat-datetimepicker/core'), require('angular-formio'), require('ngx-treeview'), require('@ng-bootstrap/ng-bootstrap'), require('formiojs'), require('lodash/find'), require('lodash/isEqual'), require('@swimlane/ngx-datatable'), require('@angular/material/button-toggle'), require('@angular/cdk/collections'), require('@angular/cdk/drag-drop'), require('@angular/material/autocomplete'), require('ngx-mask'), require('moment/moment'), require('@angular/cdk/layout'), require('dwt'), require('@angular/material/progress-bar'), require('chart.js/auto'), require('chartjs-adapter-moment'), require('devextreme-angular'), require('file-saver'), require('devextreme-angular/ui/nested'), require('@pdftron/webviewer'), require('@angular/material/tabs'), require('@angular/material/divider'), require('@angular/common/locales/ar'), require('@angular/common/locales/en'), require('@rxweb/reactive-form-validators'), require('rete-angular-plugin'), require('rete'), require('rete-area-plugin'), require('rete-auto-arrange-plugin'), require('rete-connection-plugin'), require('rete-connection-reroute-plugin'), require('rete-readonly-plugin'), require('rete-minimap-plugin'), require('d3-shape'), require('rete-connection-path-plugin'), require('rete-render-utils'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@kurkle/color'), require('ngx-markdown'), require('@angular/cdk/accordion')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('nuxeo-development-framework', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/dialog', '@angular/router', '@ngx-translate/core', 'rxjs/operators', 'rxjs', '@angular/animations', 'ngx-toastr', 'crypto-js', '@angular/cdk/bidi', '@angular/common/http', 'keycloak-angular', 'ngx-cookie-service', '@angular/cdk/coercion', '@angular/material/icon', '@angular/material/progress-spinner', '@angular/material/tooltip', 'lodash-es', 'moment', 'lodash/omit', 'lodash/assign', 'lodash/cloneDeep', 'lodash', '@angular/platform-browser', 'moment-es6', 'moment-hijri', 'ngx-infinite-scroll', '@angular/material/list', '@angular/material/menu', 'angular-ng-autocomplete', '@angular/material/core', '@angular/cdk/clipboard', 'ts-cacheable', '@ng-select/ng-select', '@angular/material/form-field', '@angular/material/chips', '@angular/material/expansion', '@angular/material/button', '@angular/material/checkbox', '@angular/material/datepicker', '@angular/material/input', '@angular/material/radio', '@angular/material/slide-toggle', '@busacca/ng-pick-datetime', '@mat-datetimepicker/core', 'angular-formio', 'ngx-treeview', '@ng-bootstrap/ng-bootstrap', 'formiojs', 'lodash/find', 'lodash/isEqual', '@swimlane/ngx-datatable', '@angular/material/button-toggle', '@angular/cdk/collections', '@angular/cdk/drag-drop', '@angular/material/autocomplete', 'ngx-mask', 'moment/moment', '@angular/cdk/layout', 'dwt', '@angular/material/progress-bar', 'chart.js/auto', 'chartjs-adapter-moment', 'devextreme-angular', 'file-saver', 'devextreme-angular/ui/nested', '@pdftron/webviewer', '@angular/material/tabs', '@angular/material/divider', '@angular/common/locales/ar', '@angular/common/locales/en', '@rxweb/reactive-form-validators', 'rete-angular-plugin', 'rete', 'rete-area-plugin', 'rete-auto-arrange-plugin', 'rete-connection-plugin', 'rete-connection-reroute-plugin', 'rete-readonly-plugin', 'rete-minimap-plugin', 'd3-shape', 'rete-connection-path-plugin', 'rete-render-utils', '@angular/material/badge', '@angular/material/toolbar', '@kurkle/color', 'ngx-markdown', '@angular/cdk/accordion'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["nuxeo-development-framework"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.router, global.i1, global.rxjs.operators, global.rxjs, global.ng.animations, global.i1$1, global.CryptoJS, global.ng.cdk.bidi, global.ng.common.http, global.i2$1, global.i3, global.ng.cdk.coercion, global.ng.material.icon, global.ng.material.progressSpinner, global.ng.material.tooltip, global.lodashEs, global.moment$6, global._omit, global._assign, global._cloneDeep, global._, global.ng.platformBrowser, global.moment$7, global.moment_, global.i9, global.ng.material.list, global.ng.material.menu, global.i6$1, global.ng.material.core, global.ng.cdk.clipboard, global.tsCacheable, global.i5, global.ng.material.formField, global.ng.material.chips, global.ng.material.expansion, global.ng.material.button, global.ng.material.checkbox, global.ng.material.datepicker, global.ng.material.input, global.ng.material.radio, global.ng.material.slideToggle, global.i6$3, global.core, global.i3$3, global.i1$9, global.i1$8, global.formiojs, global._find, global._isEqual, global.i4$2, global.ng.material.buttonToggle, global.ng.cdk.collections, global.ng.cdk.dragDrop, global.ng.material.autocomplete, global.i5$4, global.moment$8, global.ng.cdk.layout, global.Dynamsoft, global.ng.material.progressBar, global.Chart, null, global.i4$4, global.FileSaver, global.i5$6, global.WebViewer, global.ng.material.tabs, global.ng.material.divider, global.ng.common.locales.ar, global.ng.common.locales.en, global.reactiveFormValidators, global.i2$7, global.rete, global.reteAreaPlugin, global.reteAutoArrangePlugin, global.reteConnectionPlugin, global.reteConnectionReroutePlugin, global.reteReadonlyPlugin, global.reteMinimapPlugin, global.d3Shape, global.reteConnectionPathPlugin, global.reteRenderUtils, global.ng.material.badge, global.ng.material.toolbar, global.colorLib, global.i2$8, global.ng.cdk.accordion));
|
|
5
|
-
})(this, (function (exports, i0, i4, i2, i1$4, i1$3, i1, operators, rxjs, animations, i1$1, CryptoJS, i4$1, i1$2, i2$1, i3, coercion, i2$2, i3$1, i6, lodashEs, moment$6, _omit, _assign, _cloneDeep, _, i1$5, moment$7, moment_, i9, i2$3, i3$2, i6$1, i2$4, i1$6, tsCacheable, i5, i1$7, i7, i6$2, i1$b, i5$1, i2$6, i5$2, i2$5, i1$a, i6$3, core, i3$3, i1$9, i1$8, formiojs, _find, _isEqual, i4$2, i1$c, collections, i7$1, i5$3, i5$4, moment$8, i5$5, Dynamsoft, i4$3, Chart, chartjsAdapterMoment, i4$4, FileSaver, i5$6, WebViewer, i1$d, i9$1, localeAr, localeEn, reactiveFormValidators, i2$7, rete, reteAreaPlugin, reteAutoArrangePlugin, reteConnectionPlugin, reteConnectionReroutePlugin, reteReadonlyPlugin, reteMinimapPlugin, d3Shape, reteConnectionPathPlugin, reteRenderUtils, i7$2, toolbar, colorLib, i2$8, i6$4) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/dialog'), require('@angular/router'), require('@ngx-translate/core'), require('rxjs/operators'), require('rxjs'), require('@angular/animations'), require('ngx-toastr'), require('crypto-js'), require('@angular/cdk/bidi'), require('@angular/common/http'), require('keycloak-angular'), require('ngx-cookie-service'), require('@angular/cdk/coercion'), require('@angular/material/icon'), require('@angular/material/progress-spinner'), require('@angular/material/tooltip'), require('lodash-es'), require('moment'), require('lodash/omit'), require('lodash/assign'), require('lodash/cloneDeep'), require('lodash'), require('@angular/platform-browser'), require('moment-es6'), require('moment-hijri'), require('ngx-infinite-scroll'), require('@angular/material/list'), require('@angular/material/menu'), require('angular-ng-autocomplete'), require('@angular/material/core'), require('@angular/cdk/clipboard'), require('ts-cacheable'), require('@ng-select/ng-select'), require('@angular/material/form-field'), require('@angular/material/chips'), require('@angular/material/expansion'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/datepicker'), require('@angular/material/input'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('@busacca/ng-pick-datetime'), require('@mat-datetimepicker/core'), require('angular-formio'), require('ngx-treeview'), require('@ng-bootstrap/ng-bootstrap'), require('formiojs'), require('lodash/find'), require('lodash/isEqual'), require('@swimlane/ngx-datatable'), require('@angular/material/button-toggle'), require('@angular/cdk/collections'), require('@angular/cdk/drag-drop'), require('@angular/material/autocomplete'), require('ngx-mask'), require('moment/moment'), require('string-hash'), require('@angular/cdk/layout'), require('dwt'), require('@angular/material/progress-bar'), require('chart.js/auto'), require('chartjs-adapter-moment'), require('devextreme-angular'), require('file-saver'), require('devextreme-angular/ui/nested'), require('@pdftron/webviewer'), require('@angular/material/tabs'), require('@angular/material/divider'), require('@angular/common/locales/ar'), require('@angular/common/locales/en'), require('@rxweb/reactive-form-validators'), require('rete-angular-plugin'), require('rete'), require('rete-area-plugin'), require('rete-auto-arrange-plugin'), require('rete-connection-plugin'), require('rete-connection-reroute-plugin'), require('rete-readonly-plugin'), require('rete-minimap-plugin'), require('d3-shape'), require('rete-connection-path-plugin'), require('rete-render-utils'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@kurkle/color'), require('ngx-markdown'), require('@angular/cdk/accordion')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('nuxeo-development-framework', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/dialog', '@angular/router', '@ngx-translate/core', 'rxjs/operators', 'rxjs', '@angular/animations', 'ngx-toastr', 'crypto-js', '@angular/cdk/bidi', '@angular/common/http', 'keycloak-angular', 'ngx-cookie-service', '@angular/cdk/coercion', '@angular/material/icon', '@angular/material/progress-spinner', '@angular/material/tooltip', 'lodash-es', 'moment', 'lodash/omit', 'lodash/assign', 'lodash/cloneDeep', 'lodash', '@angular/platform-browser', 'moment-es6', 'moment-hijri', 'ngx-infinite-scroll', '@angular/material/list', '@angular/material/menu', 'angular-ng-autocomplete', '@angular/material/core', '@angular/cdk/clipboard', 'ts-cacheable', '@ng-select/ng-select', '@angular/material/form-field', '@angular/material/chips', '@angular/material/expansion', '@angular/material/button', '@angular/material/checkbox', '@angular/material/datepicker', '@angular/material/input', '@angular/material/radio', '@angular/material/slide-toggle', '@busacca/ng-pick-datetime', '@mat-datetimepicker/core', 'angular-formio', 'ngx-treeview', '@ng-bootstrap/ng-bootstrap', 'formiojs', 'lodash/find', 'lodash/isEqual', '@swimlane/ngx-datatable', '@angular/material/button-toggle', '@angular/cdk/collections', '@angular/cdk/drag-drop', '@angular/material/autocomplete', 'ngx-mask', 'moment/moment', 'string-hash', '@angular/cdk/layout', 'dwt', '@angular/material/progress-bar', 'chart.js/auto', 'chartjs-adapter-moment', 'devextreme-angular', 'file-saver', 'devextreme-angular/ui/nested', '@pdftron/webviewer', '@angular/material/tabs', '@angular/material/divider', '@angular/common/locales/ar', '@angular/common/locales/en', '@rxweb/reactive-form-validators', 'rete-angular-plugin', 'rete', 'rete-area-plugin', 'rete-auto-arrange-plugin', 'rete-connection-plugin', 'rete-connection-reroute-plugin', 'rete-readonly-plugin', 'rete-minimap-plugin', 'd3-shape', 'rete-connection-path-plugin', 'rete-render-utils', '@angular/material/badge', '@angular/material/toolbar', '@kurkle/color', 'ngx-markdown', '@angular/cdk/accordion'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["nuxeo-development-framework"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.router, global.i1, global.rxjs.operators, global.rxjs, global.ng.animations, global.i1$1, global.CryptoJS, global.ng.cdk.bidi, global.ng.common.http, global.i2$1, global.i3, global.ng.cdk.coercion, global.ng.material.icon, global.ng.material.progressSpinner, global.ng.material.tooltip, global.lodashEs, global.moment$6, global._omit, global._assign, global._cloneDeep, global._, global.ng.platformBrowser, global.moment$7, global.moment_, global.i9, global.ng.material.list, global.ng.material.menu, global.i6$1, global.ng.material.core, global.ng.cdk.clipboard, global.tsCacheable, global.i5, global.ng.material.formField, global.ng.material.chips, global.ng.material.expansion, global.ng.material.button, global.ng.material.checkbox, global.ng.material.datepicker, global.ng.material.input, global.ng.material.radio, global.ng.material.slideToggle, global.i6$3, global.core, global.i3$3, global.i1$9, global.i1$8, global.formiojs, global._find, global._isEqual, global.i4$2, global.ng.material.buttonToggle, global.ng.cdk.collections, global.ng.cdk.dragDrop, global.ng.material.autocomplete, global.i5$4, global.moment$8, global.stringHash, global.ng.cdk.layout, global.Dynamsoft, global.ng.material.progressBar, global.Chart, null, global.i4$4, global.FileSaver, global.i5$6, global.WebViewer, global.ng.material.tabs, global.ng.material.divider, global.ng.common.locales.ar, global.ng.common.locales.en, global.reactiveFormValidators, global.i2$7, global.rete, global.reteAreaPlugin, global.reteAutoArrangePlugin, global.reteConnectionPlugin, global.reteConnectionReroutePlugin, global.reteReadonlyPlugin, global.reteMinimapPlugin, global.d3Shape, global.reteConnectionPathPlugin, global.reteRenderUtils, global.ng.material.badge, global.ng.material.toolbar, global.colorLib, global.i2$8, global.ng.cdk.accordion));
|
|
5
|
+
})(this, (function (exports, i0, i4, i2, i1$4, i1$3, i1, operators, rxjs, animations, i1$1, CryptoJS, i4$1, i1$2, i2$1, i3, coercion, i2$2, i3$1, i6, lodashEs, moment$6, _omit, _assign, _cloneDeep, _, i1$5, moment$7, moment_, i9, i2$3, i3$2, i6$1, i2$4, i1$6, tsCacheable, i5, i1$7, i7, i6$2, i1$b, i5$1, i2$6, i5$2, i2$5, i1$a, i6$3, core, i3$3, i1$9, i1$8, formiojs, _find, _isEqual, i4$2, i1$c, collections, i7$1, i5$3, i5$4, moment$8, stringHash, i5$5, Dynamsoft, i4$3, Chart, chartjsAdapterMoment, i4$4, FileSaver, i5$6, WebViewer, i1$d, i9$1, localeAr, localeEn, reactiveFormValidators, i2$7, rete, reteAreaPlugin, reteAutoArrangePlugin, reteConnectionPlugin, reteConnectionReroutePlugin, reteReadonlyPlugin, reteMinimapPlugin, d3Shape, reteConnectionPathPlugin, reteRenderUtils, i7$2, toolbar, colorLib, i2$8, i6$4) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
var i5__namespace$3 = /*#__PURE__*/_interopNamespace(i5$3);
|
|
79
79
|
var i5__namespace$4 = /*#__PURE__*/_interopNamespace(i5$4);
|
|
80
80
|
var moment__namespace$1 = /*#__PURE__*/_interopNamespace(moment$8);
|
|
81
|
+
var stringHash__default = /*#__PURE__*/_interopDefaultLegacy(stringHash);
|
|
81
82
|
var i5__namespace$5 = /*#__PURE__*/_interopNamespace(i5$5);
|
|
82
83
|
var Dynamsoft__default = /*#__PURE__*/_interopDefaultLegacy(Dynamsoft);
|
|
83
84
|
var i4__namespace$3 = /*#__PURE__*/_interopNamespace(i4$3);
|
|
@@ -18082,6 +18083,66 @@
|
|
|
18082
18083
|
return !Array.isArray(value) && (!!value || _.isBoolean(value) || _.isNumber(value) || _.isDate(value));
|
|
18083
18084
|
}
|
|
18084
18085
|
|
|
18086
|
+
var NxQlQuery = /** @class */ (function (_super) {
|
|
18087
|
+
__extends(NxQlQuery, _super);
|
|
18088
|
+
function NxQlQuery() {
|
|
18089
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
18090
|
+
}
|
|
18091
|
+
NxQlQuery.preparePayloadItem = function (value, field) {
|
|
18092
|
+
var _a;
|
|
18093
|
+
var _defaultOperator = field.type == 'aggregation' ? COMPARISON_OPERATOR.in : COMPARISON_OPERATOR.like;
|
|
18094
|
+
var _fieldName = field.config.fieldKey;
|
|
18095
|
+
var _operator = (value === null || value === void 0 ? void 0 : value.operator) || ((_a = field.config) === null || _a === void 0 ? void 0 : _a.operator) || _defaultOperator;
|
|
18096
|
+
return {
|
|
18097
|
+
name: _fieldName,
|
|
18098
|
+
operator: _operator,
|
|
18099
|
+
value: NxQlQuery.prepareValueByOperator(_operator, value)
|
|
18100
|
+
};
|
|
18101
|
+
};
|
|
18102
|
+
NxQlQuery.prepareValueByOperator = function (operator, fieldValue) {
|
|
18103
|
+
var _b;
|
|
18104
|
+
var _opr = COMPARISON_OPERATOR;
|
|
18105
|
+
var value = fieldValue.value, prefix = fieldValue.prefix;
|
|
18106
|
+
if (operator === _opr.between) {
|
|
18107
|
+
return NxQlQuery._getMinMaxRange(fieldValue, prefix);
|
|
18108
|
+
}
|
|
18109
|
+
var operatorHandlers = (_b = {},
|
|
18110
|
+
_b[_opr.equals] = NxQlQuery.equals,
|
|
18111
|
+
_b[_opr.notEquals] = NxQlQuery.equals,
|
|
18112
|
+
_b[_opr.lessThan] = NxQlQuery.equals,
|
|
18113
|
+
_b[_opr.greaterThan] = NxQlQuery.equals,
|
|
18114
|
+
_b[_opr.in] = NxQlQuery.in,
|
|
18115
|
+
_b[_opr.notIn] = NxQlQuery.in,
|
|
18116
|
+
_b[_opr.lessThanOrEqual] = NxQlQuery.equals,
|
|
18117
|
+
_b[_opr.greaterThanOrEqual] = NxQlQuery.equals,
|
|
18118
|
+
_b[_opr.like] = NxQlQuery.like,
|
|
18119
|
+
_b[_opr.iLike] = NxQlQuery.like,
|
|
18120
|
+
_b[_opr.notLike] = NxQlQuery.like,
|
|
18121
|
+
_b[_opr.notILike] = NxQlQuery.like,
|
|
18122
|
+
_b[_opr.startsWith] = NxQlQuery.equals,
|
|
18123
|
+
_b[_opr.fullText] = NxQlQuery.equals,
|
|
18124
|
+
_b);
|
|
18125
|
+
var _val = Array.isArray(value) ? value.join(',') : value;
|
|
18126
|
+
return operatorHandlers[operator](_val, prefix);
|
|
18127
|
+
};
|
|
18128
|
+
NxQlQuery.equals = function (value, prefix) {
|
|
18129
|
+
if (prefix === void 0) { prefix = ''; }
|
|
18130
|
+
return (prefix ? prefix + " " : '') + "'" + value.trim() + "'";
|
|
18131
|
+
};
|
|
18132
|
+
NxQlQuery.like = function (value, prefix) {
|
|
18133
|
+
if (prefix === void 0) { prefix = ''; }
|
|
18134
|
+
return (prefix ? prefix + " " : '') + "'%" + value.trim() + "%'";
|
|
18135
|
+
};
|
|
18136
|
+
NxQlQuery.in = function (value, prefix) {
|
|
18137
|
+
if (prefix === void 0) { prefix = ''; }
|
|
18138
|
+
return (prefix ? prefix + " " : '') + "(" + value.trim() + ")";
|
|
18139
|
+
};
|
|
18140
|
+
NxQlQuery.between = function (value1, value2) {
|
|
18141
|
+
return value1 + " AND " + value2;
|
|
18142
|
+
};
|
|
18143
|
+
return NxQlQuery;
|
|
18144
|
+
}(NxQL));
|
|
18145
|
+
|
|
18085
18146
|
var ActiveUserService = /** @class */ (function (_super) {
|
|
18086
18147
|
__extends(ActiveUserService, _super);
|
|
18087
18148
|
function ActiveUserService() {
|
|
@@ -18328,6 +18389,76 @@
|
|
|
18328
18389
|
}]
|
|
18329
18390
|
}], ctorParameters: function () { return []; } });
|
|
18330
18391
|
|
|
18392
|
+
var FiltersMapperService = /** @class */ (function () {
|
|
18393
|
+
function FiltersMapperService() {
|
|
18394
|
+
}
|
|
18395
|
+
FiltersMapperService.prototype.preparePayload = function (fields, criteria) {
|
|
18396
|
+
return this._preparePayload(fields, criteria);
|
|
18397
|
+
};
|
|
18398
|
+
FiltersMapperService.prototype._preparePayload = function (fields, criteria) {
|
|
18399
|
+
var e_1, _b;
|
|
18400
|
+
var params = {};
|
|
18401
|
+
var predicateList = [];
|
|
18402
|
+
var payload = {};
|
|
18403
|
+
try {
|
|
18404
|
+
for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
|
|
18405
|
+
var field = fields_1_1.value;
|
|
18406
|
+
var fieldValue = criteria[field.config.fieldKey];
|
|
18407
|
+
var paramKey = field.type == 'aggregation' ? field.config.aggregation : field.config.fieldKey;
|
|
18408
|
+
if (!fieldValue) {
|
|
18409
|
+
continue;
|
|
18410
|
+
}
|
|
18411
|
+
if ((this._sendInPayload(field) || this._sendCustom(field)) && isFieldValueObject(fieldValue)) {
|
|
18412
|
+
var _data = NxQlQuery.preparePayloadItem(fieldValue, field);
|
|
18413
|
+
predicateList.push(_data);
|
|
18414
|
+
continue;
|
|
18415
|
+
}
|
|
18416
|
+
if (this._sendInPayload(field)) {
|
|
18417
|
+
payload[paramKey] = this._stringifyValue(fieldValue);
|
|
18418
|
+
}
|
|
18419
|
+
if (this._sendCustom(field) || this._sendInQueryParams(field)) {
|
|
18420
|
+
params[paramKey] = this._stringifyValue(fieldValue);
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
}
|
|
18424
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
18425
|
+
finally {
|
|
18426
|
+
try {
|
|
18427
|
+
if (fields_1_1 && !fields_1_1.done && (_b = fields_1.return)) _b.call(fields_1);
|
|
18428
|
+
}
|
|
18429
|
+
finally { if (e_1) throw e_1.error; }
|
|
18430
|
+
}
|
|
18431
|
+
return {
|
|
18432
|
+
params: params,
|
|
18433
|
+
payload: Object.assign(Object.assign({}, payload), { predicateList: predicateList })
|
|
18434
|
+
};
|
|
18435
|
+
};
|
|
18436
|
+
FiltersMapperService.prototype._stringifyValue = function (value) {
|
|
18437
|
+
return Array.isArray(value) ? JSON.stringify(value) : value;
|
|
18438
|
+
};
|
|
18439
|
+
FiltersMapperService.prototype._sendInQueryParams = function (field) {
|
|
18440
|
+
var _a;
|
|
18441
|
+
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.queryParam;
|
|
18442
|
+
};
|
|
18443
|
+
FiltersMapperService.prototype._sendInPayload = function (field) {
|
|
18444
|
+
var _a;
|
|
18445
|
+
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.payload;
|
|
18446
|
+
};
|
|
18447
|
+
FiltersMapperService.prototype._sendCustom = function (field) {
|
|
18448
|
+
var _a;
|
|
18449
|
+
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.custom;
|
|
18450
|
+
};
|
|
18451
|
+
return FiltersMapperService;
|
|
18452
|
+
}());
|
|
18453
|
+
FiltersMapperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
18454
|
+
FiltersMapperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, providedIn: 'root' });
|
|
18455
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, decorators: [{
|
|
18456
|
+
type: i0.Injectable,
|
|
18457
|
+
args: [{
|
|
18458
|
+
providedIn: 'root'
|
|
18459
|
+
}]
|
|
18460
|
+
}] });
|
|
18461
|
+
|
|
18331
18462
|
var BaseAggregationField = /** @class */ (function (_super) {
|
|
18332
18463
|
__extends(BaseAggregationField, _super);
|
|
18333
18464
|
/**
|
|
@@ -20146,12 +20277,381 @@
|
|
|
20146
20277
|
}]
|
|
20147
20278
|
}], ctorParameters: function () { return [{ type: NuxeoService }, { type: RolesService }]; } });
|
|
20148
20279
|
|
|
20280
|
+
/**
|
|
20281
|
+
* Creates a secure context for function evaluation that prevents access to the window object.
|
|
20282
|
+
* @returns {Record<string, any>} A secure context object with safe properties.
|
|
20283
|
+
*/
|
|
20284
|
+
function createSecureContext() {
|
|
20285
|
+
// Create a secure context with only safe properties
|
|
20286
|
+
var secureContext = {
|
|
20287
|
+
// Add any safe globals here that should be accessible
|
|
20288
|
+
console: {
|
|
20289
|
+
log: console.log,
|
|
20290
|
+
warn: console.warn,
|
|
20291
|
+
error: console.error
|
|
20292
|
+
},
|
|
20293
|
+
// Add other safe objects/functions as needed
|
|
20294
|
+
Math: Math,
|
|
20295
|
+
Date: Date,
|
|
20296
|
+
Number: Number,
|
|
20297
|
+
String: String,
|
|
20298
|
+
Boolean: Boolean,
|
|
20299
|
+
Array: Array,
|
|
20300
|
+
Object: Object,
|
|
20301
|
+
JSON: JSON,
|
|
20302
|
+
// Prevent access to window
|
|
20303
|
+
window: undefined,
|
|
20304
|
+
self: undefined,
|
|
20305
|
+
globalThis: undefined
|
|
20306
|
+
};
|
|
20307
|
+
return secureContext;
|
|
20308
|
+
}
|
|
20309
|
+
/**
|
|
20310
|
+
* A utility class for evaluating expressions, interpolating strings, and working with templates.
|
|
20311
|
+
* This class provides static methods for dynamic evaluation of code, string interpolation,
|
|
20312
|
+
* and template processing with caching capabilities.
|
|
20313
|
+
*/
|
|
20314
|
+
var Evaluator = /** @class */ (function () {
|
|
20315
|
+
function Evaluator() {
|
|
20316
|
+
}
|
|
20317
|
+
/**
|
|
20318
|
+
* Creates a function from a string or returns the function if already provided.
|
|
20319
|
+
* Uses a secure context to prevent access to the window object by default.
|
|
20320
|
+
* @param {string|Function} func - The function or string to convert to a function.
|
|
20321
|
+
* @param {...any} params - The parameters to pass to the function.
|
|
20322
|
+
* @param {EvaluatorOptions} [options={}] - Optional configuration for the evaluation.
|
|
20323
|
+
* @returns {Function} - The resulting function.
|
|
20324
|
+
*/
|
|
20325
|
+
Evaluator.evaluator = function (func) {
|
|
20326
|
+
var params = [];
|
|
20327
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
20328
|
+
params[_i - 1] = arguments[_i];
|
|
20329
|
+
}
|
|
20330
|
+
// Extract options if the last parameter is an options object
|
|
20331
|
+
var options = {};
|
|
20332
|
+
if (params.length > 0 &&
|
|
20333
|
+
params[params.length - 1] &&
|
|
20334
|
+
typeof params[params.length - 1] === 'object' &&
|
|
20335
|
+
'securityMode' in params[params.length - 1]) {
|
|
20336
|
+
options = params.pop();
|
|
20337
|
+
}
|
|
20338
|
+
if (typeof func === 'function') {
|
|
20339
|
+
return func;
|
|
20340
|
+
}
|
|
20341
|
+
if (typeof params[0] === 'object') {
|
|
20342
|
+
params = _.keys(params[0]);
|
|
20343
|
+
}
|
|
20344
|
+
// Check if we should use secure mode (default) or unsafe mode
|
|
20345
|
+
var securityMode = options.securityMode || 'secure';
|
|
20346
|
+
if (securityMode === 'unsafe') {
|
|
20347
|
+
// In unsafe mode, create a function with access to all globals
|
|
20348
|
+
return new (Function.bind.apply(Function, __spreadArray(__spreadArray([void 0], __read(params)), [func])))();
|
|
20349
|
+
}
|
|
20350
|
+
else {
|
|
20351
|
+
// In secure mode, create a function that runs in a restricted context
|
|
20352
|
+
var secureFunction = new (Function.bind.apply(Function, __spreadArray(__spreadArray([void 0], __read(params)), ["\n\t\t\t\t// Create a secure context with limited access\n\t\t\t\tconst secureContext = (" + createSecureContext.toString() + ")();\n\n\t\t\t\t// Prevent access to global objects\n\t\t\t\tconst window = undefined;\n\t\t\t\tconst self = undefined;\n\t\t\t\tconst globalThis = undefined;\n\n\t\t\t\t// Run the function in the secure context\n\t\t\t\twith (secureContext) {\n\t\t\t\t\t" + func + "\n\t\t\t\t}\n\t\t\t"])))();
|
|
20353
|
+
return secureFunction;
|
|
20354
|
+
}
|
|
20355
|
+
};
|
|
20356
|
+
/**
|
|
20357
|
+
* Replaces template expressions in a string with values from data.
|
|
20358
|
+
* Supports function calls within templates and fallback values using || syntax.
|
|
20359
|
+
* By default, ensures evaluation happens in a secure context to prevent access to window object.
|
|
20360
|
+
* @param {string} rawTemplate - The template string containing expressions to interpolate.
|
|
20361
|
+
* @param {Record<string, any>} data - The data object containing values to use for interpolation.
|
|
20362
|
+
* @param {EvaluatorOptions} [options={}] - Optional configuration for the interpolation process.
|
|
20363
|
+
* @returns {string} - The interpolated string with all expressions replaced with actual values.
|
|
20364
|
+
*/
|
|
20365
|
+
Evaluator.interpolateString = function (rawTemplate, data, options) {
|
|
20366
|
+
if (options === void 0) { options = {}; }
|
|
20367
|
+
if (!rawTemplate) {
|
|
20368
|
+
return '';
|
|
20369
|
+
}
|
|
20370
|
+
if (typeof rawTemplate !== 'string') {
|
|
20371
|
+
return rawTemplate.toString();
|
|
20372
|
+
}
|
|
20373
|
+
// Check if we should use secure mode (default) or unsafe mode
|
|
20374
|
+
var securityMode = options.securityMode || 'secure';
|
|
20375
|
+
// Create a secure data object if needed
|
|
20376
|
+
var secureData = securityMode === 'unsafe'
|
|
20377
|
+
? data
|
|
20378
|
+
: Object.assign(Object.assign(Object.assign({}, createSecureContext()), data), {
|
|
20379
|
+
// Ensure these remain undefined
|
|
20380
|
+
window: undefined, self: undefined, globalThis: undefined
|
|
20381
|
+
});
|
|
20382
|
+
return rawTemplate.replace(/({{\s*(.*?)\s*}})/g, function (match, $1, $2) {
|
|
20383
|
+
if ($2.indexOf('(') !== -1) {
|
|
20384
|
+
return $2.replace(/([^(]+)\(([^)]+)\s*\);?/, function (evalMatch, funcName, args) {
|
|
20385
|
+
funcName = _.trim(funcName);
|
|
20386
|
+
var func = _.get(secureData, funcName);
|
|
20387
|
+
if (func) {
|
|
20388
|
+
if (args) {
|
|
20389
|
+
var argsArray = args.split(',').map(function (arg) {
|
|
20390
|
+
arg = _.trim(arg);
|
|
20391
|
+
if (arg.indexOf('"') === 0 || arg.indexOf("'") === 0) {
|
|
20392
|
+
return arg.substring(1, arg.length - 1);
|
|
20393
|
+
}
|
|
20394
|
+
return _.get(secureData, arg);
|
|
20395
|
+
});
|
|
20396
|
+
return Evaluator.evaluate(func, argsArray, '', false, secureData, options);
|
|
20397
|
+
}
|
|
20398
|
+
return Evaluator.evaluate(func, [], '', false, secureData, options);
|
|
20399
|
+
}
|
|
20400
|
+
return '';
|
|
20401
|
+
});
|
|
20402
|
+
}
|
|
20403
|
+
else {
|
|
20404
|
+
var dataPath = $2;
|
|
20405
|
+
if ($2.indexOf('?') !== -1) {
|
|
20406
|
+
dataPath = $2.replace(/\?\./g, '.');
|
|
20407
|
+
}
|
|
20408
|
+
var parts = dataPath.split('||').map(function (item) { return item.trim(); });
|
|
20409
|
+
var value = '';
|
|
20410
|
+
var path = '';
|
|
20411
|
+
for (var i = 0; i < parts.length; i++) {
|
|
20412
|
+
path = parts[i];
|
|
20413
|
+
value = _.get(secureData, path);
|
|
20414
|
+
if (value) {
|
|
20415
|
+
break;
|
|
20416
|
+
}
|
|
20417
|
+
}
|
|
20418
|
+
if (options.data) {
|
|
20419
|
+
_.set(options.data, path, value);
|
|
20420
|
+
}
|
|
20421
|
+
return value;
|
|
20422
|
+
}
|
|
20423
|
+
});
|
|
20424
|
+
};
|
|
20425
|
+
/**
|
|
20426
|
+
* Performs an evaluation using the evaluation context of this component.
|
|
20427
|
+
* By default, ensures evaluation happens in a secure context to prevent access to window object.
|
|
20428
|
+
* @param {string|Function|object} func - The function or string to evaluate.
|
|
20429
|
+
* @param {object} args - The arguments to pass to the evaluation.
|
|
20430
|
+
* @param {string} ret - The name of the variable within the evaluation context to return.
|
|
20431
|
+
* @param {boolean} interpolate - Determines if it should replace all {{ }} token references with actual data.
|
|
20432
|
+
* @param {object} context - - The evaluation context.
|
|
20433
|
+
* @param {EvaluatorOptions } options - The options to pass to the evaluation.
|
|
20434
|
+
* @returns {*} - The result of the evaluation.
|
|
20435
|
+
*/
|
|
20436
|
+
Evaluator.evaluate = function (func, args, ret, interpolate, context, options) {
|
|
20437
|
+
if (args === void 0) { args = {}; }
|
|
20438
|
+
if (ret === void 0) { ret = 'show'; }
|
|
20439
|
+
if (interpolate === void 0) { interpolate = false; }
|
|
20440
|
+
if (context === void 0) { context = {}; }
|
|
20441
|
+
if (options === void 0) { options = {}; }
|
|
20442
|
+
var returnVal = null;
|
|
20443
|
+
var field = args.field ? args.field : { key: 'unknown' };
|
|
20444
|
+
var fieldKey = field.key;
|
|
20445
|
+
if (typeof func === 'string') {
|
|
20446
|
+
if (ret) {
|
|
20447
|
+
func = "var " + ret + ";" + func + ";return " + ret;
|
|
20448
|
+
}
|
|
20449
|
+
if (interpolate) {
|
|
20450
|
+
func = Evaluator.interpolate(func, args, options);
|
|
20451
|
+
}
|
|
20452
|
+
try {
|
|
20453
|
+
// Pass the security mode option to the evaluator
|
|
20454
|
+
var evaluatorOptions = { securityMode: options.securityMode || 'secure' };
|
|
20455
|
+
func = Evaluator.evaluator(func, args, context, evaluatorOptions);
|
|
20456
|
+
args = Array.isArray(args) ? args : _.values(args);
|
|
20457
|
+
}
|
|
20458
|
+
catch (err) {
|
|
20459
|
+
console.warn("An error occured within the custom function for " + fieldKey, err);
|
|
20460
|
+
returnVal = null;
|
|
20461
|
+
func = false;
|
|
20462
|
+
}
|
|
20463
|
+
}
|
|
20464
|
+
if (typeof func === 'function') {
|
|
20465
|
+
try {
|
|
20466
|
+
returnVal = Evaluator.execute(func, args, context, options);
|
|
20467
|
+
}
|
|
20468
|
+
catch (err) {
|
|
20469
|
+
returnVal = null;
|
|
20470
|
+
console.warn("An error occured within custom function for " + fieldKey, err);
|
|
20471
|
+
}
|
|
20472
|
+
}
|
|
20473
|
+
else if (func) {
|
|
20474
|
+
console.warn("Unknown function type for " + fieldKey);
|
|
20475
|
+
}
|
|
20476
|
+
return returnVal;
|
|
20477
|
+
};
|
|
20478
|
+
/**
|
|
20479
|
+
* Executes a function with provided arguments and context.
|
|
20480
|
+
* By default, ensures execution happens in a secure context to prevent access to window object.
|
|
20481
|
+
* @param {Function} func - The function to execute.
|
|
20482
|
+
* @param {any[]|Record<string, any>} args - The arguments to pass to the function, either as an array or object.
|
|
20483
|
+
* @param {Record<string, any>} [context={}] - The context (this) to use when executing the function.
|
|
20484
|
+
* @param {EvaluatorOptions} [options={}] - Optional configuration for the execution.
|
|
20485
|
+
* @returns {any} - The result of the function execution.
|
|
20486
|
+
*/
|
|
20487
|
+
Evaluator.execute = function (func, args, context, options) {
|
|
20488
|
+
if (context === void 0) { context = {}; }
|
|
20489
|
+
if (options === void 0) { options = {}; }
|
|
20490
|
+
// Check if we should use secure mode (default) or unsafe mode
|
|
20491
|
+
var securityMode = options.securityMode || 'secure';
|
|
20492
|
+
if (securityMode === 'unsafe') {
|
|
20493
|
+
// In unsafe mode, execute with the original context
|
|
20494
|
+
return Array.isArray(args) ? func.apply(context, args) : func.call(context, args);
|
|
20495
|
+
}
|
|
20496
|
+
else {
|
|
20497
|
+
// In secure mode, create a secure context by merging the provided context with our secure context
|
|
20498
|
+
var secureContext = Object.assign(Object.assign(Object.assign({}, createSecureContext()), context), {
|
|
20499
|
+
// Ensure these remain undefined even if they were in the provided context
|
|
20500
|
+
window: undefined, self: undefined, globalThis: undefined
|
|
20501
|
+
});
|
|
20502
|
+
// Execute the function with the secure context
|
|
20503
|
+
return Array.isArray(args) ? func.apply(secureContext, args) : func.call(secureContext, args);
|
|
20504
|
+
}
|
|
20505
|
+
};
|
|
20506
|
+
/**
|
|
20507
|
+
* Creates a template function from a string with caching for performance.
|
|
20508
|
+
* By default, ensures the template function executes in a secure context.
|
|
20509
|
+
* @param {string} template - The template string to compile into a function.
|
|
20510
|
+
* @param {string} [hash] - Optional hash to use as cache key. If not provided, a hash will be generated from the template.
|
|
20511
|
+
* @param {EvaluatorOptions} [options={}] - Optional configuration for the template.
|
|
20512
|
+
* @returns {Function|undefined} - The compiled template function, or undefined if compilation fails.
|
|
20513
|
+
*/
|
|
20514
|
+
Evaluator.template = function (template, hash, options) {
|
|
20515
|
+
if (options === void 0) { options = {}; }
|
|
20516
|
+
hash = hash || stringHash__default["default"](template).toString();
|
|
20517
|
+
// If hash contains options object, extract it
|
|
20518
|
+
if (typeof hash === 'object' && 'securityMode' in hash) {
|
|
20519
|
+
options = hash;
|
|
20520
|
+
hash = stringHash__default["default"](template).toString();
|
|
20521
|
+
}
|
|
20522
|
+
// Check if we have a cached version
|
|
20523
|
+
var cacheKey = hash + (options.securityMode || 'secure');
|
|
20524
|
+
if (Evaluator.cache[cacheKey]) {
|
|
20525
|
+
return Evaluator.cache[cacheKey];
|
|
20526
|
+
}
|
|
20527
|
+
try {
|
|
20528
|
+
template = template.replace(/ctx\./g, '');
|
|
20529
|
+
// Create the template function using lodash
|
|
20530
|
+
var templateFunc_1 = ___default["default"].template(template, Evaluator.templateSettings);
|
|
20531
|
+
// Check if we should use secure mode (default) or unsafe mode
|
|
20532
|
+
var securityMode = options.securityMode || 'secure';
|
|
20533
|
+
if (securityMode === 'unsafe') {
|
|
20534
|
+
// In unsafe mode, return the original template function
|
|
20535
|
+
return (Evaluator.cache[cacheKey] = templateFunc_1);
|
|
20536
|
+
}
|
|
20537
|
+
else {
|
|
20538
|
+
// In secure mode, wrap the template function to ensure it runs in a secure context
|
|
20539
|
+
var secureTemplateFunc = function (data) {
|
|
20540
|
+
// Create a secure context for the template
|
|
20541
|
+
var secureData = Object.assign(Object.assign(Object.assign({}, createSecureContext()), data), {
|
|
20542
|
+
// Ensure these remain undefined
|
|
20543
|
+
window: undefined, self: undefined, globalThis: undefined
|
|
20544
|
+
});
|
|
20545
|
+
return templateFunc_1(secureData);
|
|
20546
|
+
};
|
|
20547
|
+
// Cache and return the secure template function
|
|
20548
|
+
return (Evaluator.cache[cacheKey] = secureTemplateFunc);
|
|
20549
|
+
}
|
|
20550
|
+
}
|
|
20551
|
+
catch (err) {
|
|
20552
|
+
console.warn('Error while processing template', err, template);
|
|
20553
|
+
return undefined;
|
|
20554
|
+
}
|
|
20555
|
+
};
|
|
20556
|
+
/**
|
|
20557
|
+
* Interpolates a template with data, handling both function templates and string templates.
|
|
20558
|
+
* By default, ensures interpolation happens in a secure context to prevent access to window object.
|
|
20559
|
+
* @param {string|Function} rawTemplate - The template to interpolate, either as a string or a function.
|
|
20560
|
+
* @param {Record<string, any>} data - The data object to use for interpolation.
|
|
20561
|
+
* @param {EvaluatorOptions} options - Options for the interpolation process.
|
|
20562
|
+
* @returns {string|any} - The result of the interpolation, typically a string but could be any type depending on the template.
|
|
20563
|
+
*/
|
|
20564
|
+
Evaluator.interpolate = function (rawTemplate, data, options) {
|
|
20565
|
+
if (options === void 0) { options = {}; }
|
|
20566
|
+
if (typeof rawTemplate === 'function') {
|
|
20567
|
+
try {
|
|
20568
|
+
// If the template is a function, execute it with the data
|
|
20569
|
+
// We can't directly secure a provided function, but we can use execute
|
|
20570
|
+
// to run it in a secure context if needed
|
|
20571
|
+
if (options.securityMode !== 'unsafe') {
|
|
20572
|
+
var secureData = Object.assign(Object.assign(Object.assign({}, createSecureContext()), data), { window: undefined, self: undefined, globalThis: undefined });
|
|
20573
|
+
return rawTemplate(secureData);
|
|
20574
|
+
}
|
|
20575
|
+
else {
|
|
20576
|
+
return rawTemplate(data);
|
|
20577
|
+
}
|
|
20578
|
+
}
|
|
20579
|
+
catch (err) {
|
|
20580
|
+
console.warn('Error interpolating template', err, data);
|
|
20581
|
+
return err.message;
|
|
20582
|
+
}
|
|
20583
|
+
}
|
|
20584
|
+
rawTemplate = String(rawTemplate);
|
|
20585
|
+
// Pass the security mode option to the template method
|
|
20586
|
+
var template = Evaluator.template(rawTemplate, undefined, options);
|
|
20587
|
+
if (typeof template === 'function') {
|
|
20588
|
+
try {
|
|
20589
|
+
return template(data);
|
|
20590
|
+
}
|
|
20591
|
+
catch (err) {
|
|
20592
|
+
console.warn('Error interpolating template', err, rawTemplate, data);
|
|
20593
|
+
return err.message;
|
|
20594
|
+
}
|
|
20595
|
+
}
|
|
20596
|
+
return template;
|
|
20597
|
+
};
|
|
20598
|
+
return Evaluator;
|
|
20599
|
+
}());
|
|
20600
|
+
/**
|
|
20601
|
+
* Cache for storing compiled template functions to improve performance.
|
|
20602
|
+
* Keys are string hashes of the template, values are the compiled functions.
|
|
20603
|
+
*/
|
|
20604
|
+
Evaluator.cache = {};
|
|
20605
|
+
/**
|
|
20606
|
+
* Settings for template processing, defining regex patterns for different template operations.
|
|
20607
|
+
* - interpolate: Pattern for variable interpolation ({{ variable }})
|
|
20608
|
+
* - evaluate: Pattern for code evaluation ({% code %})
|
|
20609
|
+
* - escape: Pattern for HTML escaping ({{{ variable }}})
|
|
20610
|
+
*/
|
|
20611
|
+
Evaluator.templateSettings = {
|
|
20612
|
+
interpolate: /{{([\s\S]+?)}}/g,
|
|
20613
|
+
evaluate: /\{%([\s\S]+?)%\}/g,
|
|
20614
|
+
escape: /\{\{\{([\s\S]+?)\}\}\}/g
|
|
20615
|
+
};
|
|
20616
|
+
|
|
20617
|
+
var CheckConditionPipe = /** @class */ (function () {
|
|
20618
|
+
function CheckConditionPipe(nuxeoService) {
|
|
20619
|
+
this.nuxeoService = nuxeoService;
|
|
20620
|
+
this.user = nuxeoService.nuxeoClient.user;
|
|
20621
|
+
}
|
|
20622
|
+
CheckConditionPipe.prototype.transform = function (condition, aggregations, language) {
|
|
20623
|
+
if (!condition) {
|
|
20624
|
+
return true;
|
|
20625
|
+
}
|
|
20626
|
+
try {
|
|
20627
|
+
return Evaluator.evaluate(condition, ___default["default"].cloneDeep({ aggregations: aggregations, language: language, user: this.user }), '');
|
|
20628
|
+
}
|
|
20629
|
+
catch (error) {
|
|
20630
|
+
console.log({ error: error });
|
|
20631
|
+
return false;
|
|
20632
|
+
}
|
|
20633
|
+
};
|
|
20634
|
+
return CheckConditionPipe;
|
|
20635
|
+
}());
|
|
20636
|
+
CheckConditionPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CheckConditionPipe, deps: [{ token: NuxeoService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
20637
|
+
CheckConditionPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CheckConditionPipe, name: "checkCondition" });
|
|
20638
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CheckConditionPipe, decorators: [{
|
|
20639
|
+
type: i0.Pipe,
|
|
20640
|
+
args: [{
|
|
20641
|
+
name: 'checkCondition'
|
|
20642
|
+
}]
|
|
20643
|
+
}], ctorParameters: function () { return [{ type: NuxeoService }]; } });
|
|
20644
|
+
|
|
20149
20645
|
var FiltersPanelComponent = /** @class */ (function (_super) {
|
|
20150
20646
|
__extends(FiltersPanelComponent, _super);
|
|
20151
20647
|
function FiltersPanelComponent(_translateService) {
|
|
20152
20648
|
var _this = _super.call(this) || this;
|
|
20153
20649
|
_this._translateService = _translateService;
|
|
20154
|
-
_this.
|
|
20650
|
+
_this.currentLang = _this._translateService.currentLang;
|
|
20651
|
+
_this.direction$ = _this._translateService.onLangChange.pipe(operators.startWith({ lang: _this._translateService.currentLang }), operators.map(function (lang) {
|
|
20652
|
+
_this.currentLang = lang.lang;
|
|
20653
|
+
return lang.lang === 'ar' ? 'rtl' : 'ltr';
|
|
20654
|
+
}));
|
|
20155
20655
|
_this._fieldsSub = new rxjs.BehaviorSubject([]);
|
|
20156
20656
|
_this._activeQuerySub = new rxjs.BehaviorSubject(null);
|
|
20157
20657
|
_this.filterChanged = new i0.EventEmitter();
|
|
@@ -20263,7 +20763,7 @@
|
|
|
20263
20763
|
return FiltersPanelComponent;
|
|
20264
20764
|
}(BaseFiltersPanel));
|
|
20265
20765
|
FiltersPanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersPanelComponent, deps: [{ token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
20266
|
-
FiltersPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FiltersPanelComponent, selector: "app-filters-panel", inputs: { aggregations: "aggregations", fields: "fields", activeQuery: "activeQuery" }, outputs: { filterChanged: "filterChanged" }, usesInheritance: true, ngImport: i0__namespace, template: "<div [formGroup]=\"formGroup\" class=\"filters-panel\" [dir]=\"direction$ | async\">\r\n\t<div class=\"reset-filter flex reset-container\">\r\n\t\t<button mat-stroked-button class=\"w-full\" (click)=\"resetFilters()\" [disabled]=\"!hasValues\">\r\n\t\t\t{{ 'BUTTONS.clearFilter' | translate }}\r\n\t\t</button>\r\n\t</div>\r\n\t<ng-container *ngFor=\"let field of fields | filterByRoles; trackBy: trackByFieldKey\">\r\n\t\t<ng-container *permission=\"{ name: field.config?.permission }\">\r\n\t\t\t<app-predicate-field\r\n\t\t\t\t*ngIf=\"field.type == fieldTypes.predicate\"\r\n\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t></app-predicate-field>\r\n\t\t\t<app-aggregation-field\r\n\t\t\t\t*ngIf=\"field.type == fieldTypes.aggregation && !!aggregations\"\r\n\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t[aggregation]=\"aggregations[field.config.aggregation]\"\r\n\t\t\t\t[contentTemplate]=\"getContentTemplate(field.config.render.type)\"\r\n\t\t\t></app-aggregation-field>\r\n\t\t\t<app-custom-field\r\n\t\t\t\t*ngIf=\"field.type == fieldTypes.custom\"\r\n\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t\t[aggregations]=\"aggregations\"\r\n\t\t\t></app-custom-field>\r\n\t\t</ng-container>\r\n\t</ng-container>\r\n</div>\r\n", styles: [".filters-panel{display:var(--filters-panel-display, flex);flex-direction:var(--filters-panel-direction, column);grid-gap:var(--filters-panel-gap, .5rem);gap:var(--filters-panel-gap, .5rem);flex-wrap:var(--filters-panel-wrap, wrap);max-width:100%;box-sizing:border-box}.aggregation-field{padding-inline:var(--af-padding-inline, var(--ff-padding-inline, .5rem));padding-block:var(--af-padding-block, var(--ff-padding-block, 0));max-width:100%}.reset-container{padding:.5rem;position:sticky;top:-8px;z-index:4;background:var(--reset-filter-panel-bg, #fff)}.reset-container button.mat-button-base{background-color:var(--reset-filter-panel-btn-bg, transparent);border-color:var(--reset-filter-panel-btn-bg, #e2e8f0);color:var(--reset-filter-panel-btn-color, currentColor)}\n"], components: [{ type: i1__namespace$c.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: PredicateFieldComponent, selector: "app-predicate-field" }, { type: AggregationFieldComponent, selector: "app-aggregation-field", inputs: ["aggregation", "contentTemplate"] }, { type: CustomFieldComponent, selector: "app-custom-field", inputs: ["aggregations"] }], directives: [{ type: i2__namespace$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4__namespace.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe, "filterByRoles": FiltersByRolesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
20766
|
+
FiltersPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FiltersPanelComponent, selector: "app-filters-panel", inputs: { aggregations: "aggregations", fields: "fields", activeQuery: "activeQuery" }, outputs: { filterChanged: "filterChanged" }, usesInheritance: true, ngImport: i0__namespace, template: "<div [formGroup]=\"formGroup\" class=\"filters-panel\" [dir]=\"direction$ | async\">\r\n\t<div class=\"reset-filter flex reset-container\">\r\n\t\t<button mat-stroked-button class=\"w-full\" (click)=\"resetFilters()\" [disabled]=\"!hasValues\">\r\n\t\t\t{{ 'BUTTONS.clearFilter' | translate }}\r\n\t\t</button>\r\n\t</div>\r\n\t<ng-container *ngFor=\"let field of fields | filterByRoles; trackBy: trackByFieldKey\">\r\n\t\t<ng-container *permission=\"{ name: field.config?.permission }\">\r\n\t\t\t<ng-container *ngIf=\"field.config?.condition | checkCondition: aggregations : currentLang \">\r\n\t\t\t\t<app-predicate-field\r\n\t\t\t\t\t*ngIf=\"field.type == fieldTypes.predicate\"\r\n\t\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t\t></app-predicate-field>\r\n\t\t\t\t<app-aggregation-field\r\n\t\t\t\t\t*ngIf=\"field.type == fieldTypes.aggregation && !!aggregations\"\r\n\t\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t\t[aggregation]=\"aggregations[field.config.aggregation]\"\r\n\t\t\t\t\t[contentTemplate]=\"getContentTemplate(field.config.render.type)\"\r\n\t\t\t\t></app-aggregation-field>\r\n\t\t\t\t<app-custom-field\r\n\t\t\t\t\t*ngIf=\"field.type == fieldTypes.custom\"\r\n\t\t\t\t\t[fieldConfig]=\"field.config\"\r\n\t\t\t\t\t[formControlName]=\"field.config.fieldKey\"\r\n\t\t\t\t\t[aggregations]=\"aggregations\"\r\n\t\t\t\t></app-custom-field>\r\n\t\t\t</ng-container>\r\n\t\t</ng-container>\r\n\t</ng-container>\r\n</div>\r\n", styles: [".filters-panel{display:var(--filters-panel-display, flex);flex-direction:var(--filters-panel-direction, column);grid-gap:var(--filters-panel-gap, .5rem);gap:var(--filters-panel-gap, .5rem);flex-wrap:var(--filters-panel-wrap, wrap);max-width:100%;box-sizing:border-box}.aggregation-field{padding-inline:var(--af-padding-inline, var(--ff-padding-inline, .5rem));padding-block:var(--af-padding-block, var(--ff-padding-block, 0));max-width:100%}.reset-container{padding:.5rem;position:sticky;top:-8px;z-index:4;background:var(--reset-filter-panel-bg, #fff)}.reset-container button.mat-button-base{background-color:var(--reset-filter-panel-btn-bg, transparent);border-color:var(--reset-filter-panel-btn-bg, #e2e8f0);color:var(--reset-filter-panel-btn-color, currentColor)}\n"], components: [{ type: i1__namespace$c.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: PredicateFieldComponent, selector: "app-predicate-field" }, { type: AggregationFieldComponent, selector: "app-aggregation-field", inputs: ["aggregation", "contentTemplate"] }, { type: CustomFieldComponent, selector: "app-custom-field", inputs: ["aggregations"] }], directives: [{ type: i2__namespace$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4__namespace.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe, "filterByRoles": FiltersByRolesPipe, "checkCondition": CheckConditionPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
20267
20767
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersPanelComponent, decorators: [{
|
|
20268
20768
|
type: i0.Component,
|
|
20269
20769
|
args: [{
|
|
@@ -20381,15 +20881,16 @@
|
|
|
20381
20881
|
SanitizerPipe,
|
|
20382
20882
|
SortListPipe,
|
|
20383
20883
|
TooltipPipe,
|
|
20384
|
-
FiltersByRolesPipe
|
|
20884
|
+
FiltersByRolesPipe,
|
|
20885
|
+
CheckConditionPipe
|
|
20385
20886
|
];
|
|
20386
|
-
var
|
|
20387
|
-
function
|
|
20887
|
+
var NdfFiltersPanelModule = /** @class */ (function () {
|
|
20888
|
+
function NdfFiltersPanelModule() {
|
|
20388
20889
|
}
|
|
20389
|
-
return
|
|
20890
|
+
return NdfFiltersPanelModule;
|
|
20390
20891
|
}());
|
|
20391
|
-
|
|
20392
|
-
|
|
20892
|
+
NdfFiltersPanelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfFiltersPanelModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
20893
|
+
NdfFiltersPanelModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfFiltersPanelModule, declarations: [FiltersPanelComponent, PredicateFieldComponent, AggregationFieldComponent, CustomFieldComponent, AggregationAutocompleteComponent,
|
|
20393
20894
|
AggregationSelectComponent,
|
|
20394
20895
|
AggregationCheckboxComponent,
|
|
20395
20896
|
AggregationSwitchComponent,
|
|
@@ -20413,7 +20914,8 @@
|
|
|
20413
20914
|
SanitizerPipe,
|
|
20414
20915
|
SortListPipe,
|
|
20415
20916
|
TooltipPipe,
|
|
20416
|
-
FiltersByRolesPipe,
|
|
20917
|
+
FiltersByRolesPipe,
|
|
20918
|
+
CheckConditionPipe, FilterOptionTextComponent,
|
|
20417
20919
|
FilterSearchInputComponent,
|
|
20418
20920
|
FilterCollapseControlComponent,
|
|
20419
20921
|
FieldHeaderComponent,
|
|
@@ -20456,7 +20958,7 @@
|
|
|
20456
20958
|
DropdownLabelTemplateDirective,
|
|
20457
20959
|
DropdownMultiLabelTemplateDirective,
|
|
20458
20960
|
DateListTemplateDirective, HtmlDialogComponent] });
|
|
20459
|
-
|
|
20961
|
+
NdfFiltersPanelModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfFiltersPanelModule, providers: [DynamicComponentLoaderService, AggregationFieldService], imports: [[
|
|
20460
20962
|
i4.CommonModule,
|
|
20461
20963
|
i2.FormsModule,
|
|
20462
20964
|
i2.ReactiveFormsModule,
|
|
@@ -20481,7 +20983,7 @@
|
|
|
20481
20983
|
validation: true
|
|
20482
20984
|
})
|
|
20483
20985
|
]] });
|
|
20484
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
20986
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfFiltersPanelModule, decorators: [{
|
|
20485
20987
|
type: i0.NgModule,
|
|
20486
20988
|
args: [{
|
|
20487
20989
|
declarations: [CONTAINERS$1, COMPONENTS$4, CUSTOM_ELEMENTS, DIRECTIVES$3, PIPES, PARTS, EXPORTED_PARTS],
|
|
@@ -20715,185 +21217,6 @@
|
|
|
20715
21217
|
KEY: 'key'
|
|
20716
21218
|
};
|
|
20717
21219
|
|
|
20718
|
-
var NxQlQuery = /** @class */ (function (_super) {
|
|
20719
|
-
__extends(NxQlQuery, _super);
|
|
20720
|
-
function NxQlQuery() {
|
|
20721
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
20722
|
-
}
|
|
20723
|
-
NxQlQuery.preparePayloadItem = function (value, field) {
|
|
20724
|
-
var _a;
|
|
20725
|
-
var _defaultOperator = field.type == 'aggregation' ? COMPARISON_OPERATOR.in : COMPARISON_OPERATOR.like;
|
|
20726
|
-
var _fieldName = field.config.fieldKey;
|
|
20727
|
-
var _operator = (value === null || value === void 0 ? void 0 : value.operator) || ((_a = field.config) === null || _a === void 0 ? void 0 : _a.operator) || _defaultOperator;
|
|
20728
|
-
return {
|
|
20729
|
-
name: _fieldName,
|
|
20730
|
-
operator: _operator,
|
|
20731
|
-
value: NxQlQuery.prepareValueByOperator(_operator, value)
|
|
20732
|
-
};
|
|
20733
|
-
};
|
|
20734
|
-
NxQlQuery.prepareValueByOperator = function (operator, fieldValue) {
|
|
20735
|
-
var _b;
|
|
20736
|
-
var _opr = COMPARISON_OPERATOR;
|
|
20737
|
-
var value = fieldValue.value, prefix = fieldValue.prefix;
|
|
20738
|
-
if (operator === _opr.between) {
|
|
20739
|
-
return NxQlQuery._getMinMaxRange(fieldValue, prefix);
|
|
20740
|
-
}
|
|
20741
|
-
var operatorHandlers = (_b = {},
|
|
20742
|
-
_b[_opr.equals] = NxQlQuery.equals,
|
|
20743
|
-
_b[_opr.notEquals] = NxQlQuery.equals,
|
|
20744
|
-
_b[_opr.lessThan] = NxQlQuery.equals,
|
|
20745
|
-
_b[_opr.greaterThan] = NxQlQuery.equals,
|
|
20746
|
-
_b[_opr.in] = NxQlQuery.in,
|
|
20747
|
-
_b[_opr.notIn] = NxQlQuery.in,
|
|
20748
|
-
_b[_opr.lessThanOrEqual] = NxQlQuery.equals,
|
|
20749
|
-
_b[_opr.greaterThanOrEqual] = NxQlQuery.equals,
|
|
20750
|
-
_b[_opr.like] = NxQlQuery.like,
|
|
20751
|
-
_b[_opr.iLike] = NxQlQuery.like,
|
|
20752
|
-
_b[_opr.notLike] = NxQlQuery.like,
|
|
20753
|
-
_b[_opr.notILike] = NxQlQuery.like,
|
|
20754
|
-
_b[_opr.startsWith] = NxQlQuery.equals,
|
|
20755
|
-
_b[_opr.fullText] = NxQlQuery.equals,
|
|
20756
|
-
_b);
|
|
20757
|
-
var _val = Array.isArray(value) ? value.join(',') : value;
|
|
20758
|
-
return operatorHandlers[operator](_val, prefix);
|
|
20759
|
-
};
|
|
20760
|
-
NxQlQuery.equals = function (value, prefix) {
|
|
20761
|
-
if (prefix === void 0) { prefix = ''; }
|
|
20762
|
-
return (prefix ? prefix + " " : '') + "'" + value.trim() + "'";
|
|
20763
|
-
};
|
|
20764
|
-
NxQlQuery.like = function (value, prefix) {
|
|
20765
|
-
if (prefix === void 0) { prefix = ''; }
|
|
20766
|
-
return (prefix ? prefix + " " : '') + "'%" + value.trim() + "%'";
|
|
20767
|
-
};
|
|
20768
|
-
NxQlQuery.in = function (value, prefix) {
|
|
20769
|
-
if (prefix === void 0) { prefix = ''; }
|
|
20770
|
-
return (prefix ? prefix + " " : '') + "(" + value.trim() + ")";
|
|
20771
|
-
};
|
|
20772
|
-
NxQlQuery.between = function (value1, value2) {
|
|
20773
|
-
return value1 + " AND " + value2;
|
|
20774
|
-
};
|
|
20775
|
-
return NxQlQuery;
|
|
20776
|
-
}(NxQL));
|
|
20777
|
-
|
|
20778
|
-
var FiltersMapperService = /** @class */ (function () {
|
|
20779
|
-
function FiltersMapperService() {
|
|
20780
|
-
}
|
|
20781
|
-
FiltersMapperService.prototype.preparePayload = function (fields, criteria) {
|
|
20782
|
-
return this._preparePayload(fields, criteria);
|
|
20783
|
-
};
|
|
20784
|
-
FiltersMapperService.prototype._preparePayload = function (fields, criteria) {
|
|
20785
|
-
var e_1, _b;
|
|
20786
|
-
var params = {};
|
|
20787
|
-
var predicateList = [];
|
|
20788
|
-
var payload = {};
|
|
20789
|
-
try {
|
|
20790
|
-
for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
|
|
20791
|
-
var field = fields_1_1.value;
|
|
20792
|
-
var fieldValue = criteria[field.config.fieldKey];
|
|
20793
|
-
var paramKey = field.type == 'aggregation' ? field.config.aggregation : field.config.fieldKey;
|
|
20794
|
-
if (!fieldValue) {
|
|
20795
|
-
continue;
|
|
20796
|
-
}
|
|
20797
|
-
if ((this._sendInPayload(field) || this._sendCustom(field)) && isFieldValueObject(fieldValue)) {
|
|
20798
|
-
var _data = NxQlQuery.preparePayloadItem(fieldValue, field);
|
|
20799
|
-
predicateList.push(_data);
|
|
20800
|
-
continue;
|
|
20801
|
-
}
|
|
20802
|
-
if (this._sendInPayload(field)) {
|
|
20803
|
-
payload[paramKey] = this._stringifyValue(fieldValue);
|
|
20804
|
-
}
|
|
20805
|
-
if (this._sendCustom(field) || this._sendInQueryParams(field)) {
|
|
20806
|
-
params[paramKey] = this._stringifyValue(fieldValue);
|
|
20807
|
-
}
|
|
20808
|
-
}
|
|
20809
|
-
}
|
|
20810
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
20811
|
-
finally {
|
|
20812
|
-
try {
|
|
20813
|
-
if (fields_1_1 && !fields_1_1.done && (_b = fields_1.return)) _b.call(fields_1);
|
|
20814
|
-
}
|
|
20815
|
-
finally { if (e_1) throw e_1.error; }
|
|
20816
|
-
}
|
|
20817
|
-
return {
|
|
20818
|
-
params: params,
|
|
20819
|
-
payload: Object.assign(Object.assign({}, payload), { predicateList: predicateList })
|
|
20820
|
-
};
|
|
20821
|
-
};
|
|
20822
|
-
FiltersMapperService.prototype._stringifyValue = function (value) {
|
|
20823
|
-
return Array.isArray(value) ? JSON.stringify(value) : value;
|
|
20824
|
-
};
|
|
20825
|
-
FiltersMapperService.prototype._sendInQueryParams = function (field) {
|
|
20826
|
-
var _a;
|
|
20827
|
-
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.queryParam;
|
|
20828
|
-
};
|
|
20829
|
-
FiltersMapperService.prototype._sendInPayload = function (field) {
|
|
20830
|
-
var _a;
|
|
20831
|
-
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.payload;
|
|
20832
|
-
};
|
|
20833
|
-
FiltersMapperService.prototype._sendCustom = function (field) {
|
|
20834
|
-
var _a;
|
|
20835
|
-
return ((_a = field.config) === null || _a === void 0 ? void 0 : _a.sendMode) === FIELD_SEND_MODE.custom;
|
|
20836
|
-
};
|
|
20837
|
-
return FiltersMapperService;
|
|
20838
|
-
}());
|
|
20839
|
-
FiltersMapperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
20840
|
-
FiltersMapperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, providedIn: 'root' });
|
|
20841
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FiltersMapperService, decorators: [{
|
|
20842
|
-
type: i0.Injectable,
|
|
20843
|
-
args: [{
|
|
20844
|
-
providedIn: 'root'
|
|
20845
|
-
}]
|
|
20846
|
-
}] });
|
|
20847
|
-
|
|
20848
|
-
var NdfTableService = /** @class */ (function (_super) {
|
|
20849
|
-
__extends(NdfTableService, _super);
|
|
20850
|
-
function NdfTableService(injector) {
|
|
20851
|
-
return _super.call(this, injector) || this;
|
|
20852
|
-
}
|
|
20853
|
-
NdfTableService.prototype.exportTable = function (request, payload) {
|
|
20854
|
-
return this.request({
|
|
20855
|
-
type: (("" + request.method).toLowerCase() || 'post'),
|
|
20856
|
-
endpoint: request.url,
|
|
20857
|
-
headers: request === null || request === void 0 ? void 0 : request.headers,
|
|
20858
|
-
queryParams: request === null || request === void 0 ? void 0 : request.params,
|
|
20859
|
-
payload: payload
|
|
20860
|
-
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Statue)).toLowerCase() === 'success'; }));
|
|
20861
|
-
};
|
|
20862
|
-
return NdfTableService;
|
|
20863
|
-
}(BaseService));
|
|
20864
|
-
NdfTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
20865
|
-
NdfTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, providedIn: 'root' });
|
|
20866
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, decorators: [{
|
|
20867
|
-
type: i0.Injectable,
|
|
20868
|
-
args: [{
|
|
20869
|
-
providedIn: 'root'
|
|
20870
|
-
}]
|
|
20871
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
20872
|
-
|
|
20873
|
-
var NdfTableConfigurationService = /** @class */ (function (_super) {
|
|
20874
|
-
__extends(NdfTableConfigurationService, _super);
|
|
20875
|
-
function NdfTableConfigurationService(injector) {
|
|
20876
|
-
var _this = _super.call(this, injector) || this;
|
|
20877
|
-
_this.injector = injector;
|
|
20878
|
-
_this.appConfigService = _this.injector.get(AppConfigService);
|
|
20879
|
-
_this.configurationsUrl = 'assets/configs/configuration.json';
|
|
20880
|
-
return _this;
|
|
20881
|
-
}
|
|
20882
|
-
NdfTableConfigurationService.prototype.getTableConfiguration = function (key, path) {
|
|
20883
|
-
return rxjs.of(this.appConfigService.myConfiguration).pipe(operators.map(function (config) {
|
|
20884
|
-
var base = path ? ___default["default"].get(config, path) : config;
|
|
20885
|
-
return _.cloneDeep(___default["default"].get(base, key));
|
|
20886
|
-
}));
|
|
20887
|
-
};
|
|
20888
|
-
return NdfTableConfigurationService;
|
|
20889
|
-
}(HttpBaseService));
|
|
20890
|
-
NdfTableConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
20891
|
-
NdfTableConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, providedIn: 'root' });
|
|
20892
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, decorators: [{
|
|
20893
|
-
type: i0.Injectable,
|
|
20894
|
-
args: [{ providedIn: 'root' }]
|
|
20895
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
20896
|
-
|
|
20897
21220
|
var DynamicTableService = /** @class */ (function () {
|
|
20898
21221
|
function DynamicTableService() {
|
|
20899
21222
|
this.refreshData = new i0.EventEmitter();
|
|
@@ -21583,6 +21906,55 @@
|
|
|
21583
21906
|
}]
|
|
21584
21907
|
}] });
|
|
21585
21908
|
|
|
21909
|
+
var NdfTableService = /** @class */ (function (_super) {
|
|
21910
|
+
__extends(NdfTableService, _super);
|
|
21911
|
+
function NdfTableService(injector) {
|
|
21912
|
+
return _super.call(this, injector) || this;
|
|
21913
|
+
}
|
|
21914
|
+
NdfTableService.prototype.exportTable = function (request, payload) {
|
|
21915
|
+
return this.request({
|
|
21916
|
+
type: (("" + request.method).toLowerCase() || 'post'),
|
|
21917
|
+
endpoint: request.url,
|
|
21918
|
+
headers: request === null || request === void 0 ? void 0 : request.headers,
|
|
21919
|
+
queryParams: request === null || request === void 0 ? void 0 : request.params,
|
|
21920
|
+
payload: payload
|
|
21921
|
+
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Statue)).toLowerCase() === 'success'; }));
|
|
21922
|
+
};
|
|
21923
|
+
return NdfTableService;
|
|
21924
|
+
}(BaseService));
|
|
21925
|
+
NdfTableService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
21926
|
+
NdfTableService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, providedIn: 'root' });
|
|
21927
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableService, decorators: [{
|
|
21928
|
+
type: i0.Injectable,
|
|
21929
|
+
args: [{
|
|
21930
|
+
providedIn: 'root'
|
|
21931
|
+
}]
|
|
21932
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
21933
|
+
|
|
21934
|
+
var NdfTableConfigurationService = /** @class */ (function (_super) {
|
|
21935
|
+
__extends(NdfTableConfigurationService, _super);
|
|
21936
|
+
function NdfTableConfigurationService(injector) {
|
|
21937
|
+
var _this = _super.call(this, injector) || this;
|
|
21938
|
+
_this.injector = injector;
|
|
21939
|
+
_this.appConfigService = _this.injector.get(AppConfigService);
|
|
21940
|
+
_this.configurationsUrl = 'assets/configs/configuration.json';
|
|
21941
|
+
return _this;
|
|
21942
|
+
}
|
|
21943
|
+
NdfTableConfigurationService.prototype.getTableConfiguration = function (key, path) {
|
|
21944
|
+
return rxjs.of(this.appConfigService.myConfiguration).pipe(operators.map(function (config) {
|
|
21945
|
+
var base = path ? ___default["default"].get(config, path) : config;
|
|
21946
|
+
return _.cloneDeep(___default["default"].get(base, key));
|
|
21947
|
+
}));
|
|
21948
|
+
};
|
|
21949
|
+
return NdfTableConfigurationService;
|
|
21950
|
+
}(HttpBaseService));
|
|
21951
|
+
NdfTableConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
21952
|
+
NdfTableConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, providedIn: 'root' });
|
|
21953
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableConfigurationService, decorators: [{
|
|
21954
|
+
type: i0.Injectable,
|
|
21955
|
+
args: [{ providedIn: 'root' }]
|
|
21956
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
21957
|
+
|
|
21586
21958
|
var PROJECT_BASE_HREF = new i0.InjectionToken('PROJECT_BASE_HREF');
|
|
21587
21959
|
|
|
21588
21960
|
var EditorButtonComponent = /** @class */ (function () {
|
|
@@ -22214,7 +22586,7 @@
|
|
|
22214
22586
|
TableColumnsTogglerComponent,
|
|
22215
22587
|
ModeTogglerComponent,
|
|
22216
22588
|
TextSearchComponent, ActionsTableTemplateDirective, SearchTableTemplateDirective, FilterCustomTemplateDirective, TableExportComponent], imports: [i4.CommonModule,
|
|
22217
|
-
|
|
22589
|
+
NdfFiltersPanelModule,
|
|
22218
22590
|
DynamicTableModule,
|
|
22219
22591
|
i3$2.MatMenuModule,
|
|
22220
22592
|
i5$1.MatCheckboxModule,
|
|
@@ -22238,7 +22610,7 @@
|
|
|
22238
22610
|
TextSearchComponent, ActionsTableTemplateDirective, SearchTableTemplateDirective, FilterCustomTemplateDirective] });
|
|
22239
22611
|
NdfTableModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfTableModule, imports: [[
|
|
22240
22612
|
i4.CommonModule,
|
|
22241
|
-
|
|
22613
|
+
NdfFiltersPanelModule,
|
|
22242
22614
|
DynamicTableModule,
|
|
22243
22615
|
i3$2.MatMenuModule,
|
|
22244
22616
|
i5$1.MatCheckboxModule,
|
|
@@ -22263,7 +22635,7 @@
|
|
|
22263
22635
|
declarations: [COMPONENTS$3, DIRECTIVES$2, TableExportComponent],
|
|
22264
22636
|
imports: [
|
|
22265
22637
|
i4.CommonModule,
|
|
22266
|
-
|
|
22638
|
+
NdfFiltersPanelModule,
|
|
22267
22639
|
DynamicTableModule,
|
|
22268
22640
|
i3$2.MatMenuModule,
|
|
22269
22641
|
i5$1.MatCheckboxModule,
|
|
@@ -45544,7 +45916,7 @@
|
|
|
45544
45916
|
i5.NgSelectModule,
|
|
45545
45917
|
i6.MatTooltipModule,
|
|
45546
45918
|
FluidHeightModule,
|
|
45547
|
-
|
|
45919
|
+
NdfFiltersPanelModule,
|
|
45548
45920
|
i3$1.MatProgressSpinnerModule,
|
|
45549
45921
|
NuxeoDialogModule,
|
|
45550
45922
|
NdfTableModule,
|
|
@@ -45563,7 +45935,7 @@
|
|
|
45563
45935
|
i5.NgSelectModule,
|
|
45564
45936
|
i6.MatTooltipModule,
|
|
45565
45937
|
FluidHeightModule,
|
|
45566
|
-
|
|
45938
|
+
NdfFiltersPanelModule,
|
|
45567
45939
|
i3$1.MatProgressSpinnerModule,
|
|
45568
45940
|
NuxeoDialogModule,
|
|
45569
45941
|
NdfTableModule,
|
|
@@ -45587,7 +45959,7 @@
|
|
|
45587
45959
|
i5.NgSelectModule,
|
|
45588
45960
|
i6.MatTooltipModule,
|
|
45589
45961
|
FluidHeightModule,
|
|
45590
|
-
|
|
45962
|
+
NdfFiltersPanelModule,
|
|
45591
45963
|
i3$1.MatProgressSpinnerModule,
|
|
45592
45964
|
NuxeoDialogModule,
|
|
45593
45965
|
NdfTableModule,
|
|
@@ -47275,7 +47647,6 @@
|
|
|
47275
47647
|
return this._options;
|
|
47276
47648
|
},
|
|
47277
47649
|
set: function (options) {
|
|
47278
|
-
console.log(options);
|
|
47279
47650
|
this._options = Object.assign({}, this.config.defaultOptions, options);
|
|
47280
47651
|
if (this._editor) {
|
|
47281
47652
|
this._editor.dispose();
|
|
@@ -47743,6 +48114,7 @@
|
|
|
47743
48114
|
exports.ChartPluginsRegistry = ChartPluginsRegistry;
|
|
47744
48115
|
exports.ChartUtils = index$2;
|
|
47745
48116
|
exports.ChartsModule = ChartsModule;
|
|
48117
|
+
exports.CheckConditionPipe = CheckConditionPipe;
|
|
47746
48118
|
exports.CheckboxTemplateDirective = CheckboxTemplateDirective;
|
|
47747
48119
|
exports.CircleNode = CircleNode;
|
|
47748
48120
|
exports.CircleNodeComponent = CircleNodeComponent;
|
|
@@ -47914,7 +48286,6 @@
|
|
|
47914
48286
|
exports.FiltersByRolesPipe = FiltersByRolesPipe;
|
|
47915
48287
|
exports.FiltersMapperService = FiltersMapperService;
|
|
47916
48288
|
exports.FiltersPanelComponent = FiltersPanelComponent;
|
|
47917
|
-
exports.FiltersPanelModule = FiltersPanelModule;
|
|
47918
48289
|
exports.FluidHeightDirective = FluidHeightDirective;
|
|
47919
48290
|
exports.FluidHeightModule = FluidHeightModule;
|
|
47920
48291
|
exports.FolderModalComponent = FolderModalComponent;
|
|
@@ -47987,6 +48358,7 @@
|
|
|
47987
48358
|
exports.NdfConfirmationDialogComponent = NdfConfirmationDialogComponent;
|
|
47988
48359
|
exports.NdfDatepickerComponent = NdfDatepickerComponent;
|
|
47989
48360
|
exports.NdfDatepickerModule = NdfDatepickerModule;
|
|
48361
|
+
exports.NdfFiltersPanelModule = NdfFiltersPanelModule;
|
|
47990
48362
|
exports.NdfGregorianDatepickerComponent = NdfGregorianDatepickerComponent;
|
|
47991
48363
|
exports.NdfHijriDatepickerComponent = NdfHijriDatepickerComponent;
|
|
47992
48364
|
exports.NdfNuxeoDialog = NdfNuxeoDialog;
|
|
@@ -48033,6 +48405,7 @@
|
|
|
48033
48405
|
exports.NuxeoMapper = NuxeoMapper;
|
|
48034
48406
|
exports.NuxeoService = NuxeoService;
|
|
48035
48407
|
exports.NxQL = NxQL;
|
|
48408
|
+
exports.NxQlQuery = NxQlQuery;
|
|
48036
48409
|
exports.OutputPort = OutputPort;
|
|
48037
48410
|
exports.PAGINATION_MODE = PAGINATION_MODE;
|
|
48038
48411
|
exports.PANEL_MODE = PANEL_MODE;
|