@arsedizioni/ars-utils 18.1.74 → 18.1.76

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.
Files changed (113) hide show
  1. package/clipper.common/common/common.module.d.ts +1 -2
  2. package/clipper.common/common/definitions.d.ts +317 -0
  3. package/clipper.common/common/interceptors/auth.interceptor.d.ts +2 -5
  4. package/clipper.common/common/messages.d.ts +4 -0
  5. package/clipper.common/common/services/clipper.service.d.ts +12 -36
  6. package/clipper.ui/{ui/document/documents.d.ts → documents.d.ts} +2 -6
  7. package/clipper.ui/public_api.d.ts +6 -5
  8. package/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +30 -143
  9. package/clipper.ui/ui/clipper.scss +270 -106
  10. package/clipper.ui/ui/document/document.component.d.ts +64 -118
  11. package/clipper.ui/ui/document-index/document-index.component.d.ts +34 -0
  12. package/clipper.ui/ui/document-manager/document-manager.d.ts +126 -0
  13. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +28 -0
  14. package/clipper.ui/ui/references/references.component.d.ts +39 -73
  15. package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +40 -0
  16. package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +37 -40
  17. package/clipper.ui/ui/search-facets/search-facets.component.d.ts +22 -70
  18. package/clipper.ui/ui/search-free-text-help/search-free-text-help.component.d.ts +0 -1
  19. package/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.d.ts +8 -12
  20. package/clipper.ui/ui/search-result-item/search-result-item.component.d.ts +6 -4
  21. package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +147 -0
  22. package/esm2022/clipper.common/common/common.module.mjs +2 -3
  23. package/esm2022/clipper.common/common/definitions.mjs +1536 -0
  24. package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +15 -15
  25. package/esm2022/clipper.common/common/messages.mjs +6 -1
  26. package/esm2022/clipper.common/common/services/clipper.service.mjs +65 -65
  27. package/esm2022/clipper.ui/documents.mjs +51 -0
  28. package/esm2022/clipper.ui/public_api.mjs +7 -6
  29. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +320 -785
  30. package/esm2022/clipper.ui/ui/document/document.component.mjs +213 -320
  31. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +121 -0
  32. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +431 -0
  33. package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +56 -0
  34. package/esm2022/clipper.ui/ui/references/references.component.mjs +244 -438
  35. package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +116 -0
  36. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +216 -205
  37. package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +157 -209
  38. package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +7 -8
  39. package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +22 -23
  40. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +12 -10
  41. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +462 -0
  42. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +25 -28
  43. package/esm2022/support.common/common/definitions.mjs +21 -0
  44. package/esm2022/support.common/common/services/support.service.mjs +9 -7
  45. package/esm2022/support.common/public_api.mjs +2 -2
  46. package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
  47. package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +4 -5
  48. package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
  49. package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +3 -3
  50. package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +3 -3
  51. package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
  52. package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
  53. package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
  54. package/esm2022/ui.application/public_api.mjs +4 -1
  55. package/esm2022/ui.application/ui/components/button-selector/button-selector.component.mjs +163 -0
  56. package/esm2022/ui.application/ui/components/button-toggle/button-toggle.component.mjs +47 -0
  57. package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +239 -0
  58. package/esm2022/ui.application/ui/components/file-preview/file-preview.component.mjs +23 -24
  59. package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
  60. package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +3 -3
  61. package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +3 -3
  62. package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
  63. package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +3 -3
  64. package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +3 -3
  65. package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +3 -3
  66. package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +3 -3
  67. package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +3 -3
  68. package/esm2022/ui.application/ui/messages.mjs +3 -3
  69. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1608 -1507
  70. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  71. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2283 -2407
  72. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  73. package/fesm2022/arsedizioni-ars-utils-help.mjs +25 -28
  74. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  75. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +8 -6
  76. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  77. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +5 -6
  78. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  79. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +450 -47
  80. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  81. package/fesm2022/arsedizioni-ars-utils-ui.mjs +12 -12
  82. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  83. package/help/components/help-viewer/help-viewer.component.d.ts +6 -10
  84. package/package.json +13 -13
  85. package/styles/ui.scss +140 -0
  86. package/support.common/common/services/support.service.d.ts +2 -2
  87. package/support.common/public_api.d.ts +1 -1
  88. package/ui.application/public_api.d.ts +3 -0
  89. package/ui.application/ui/components/button-selector/button-selector.component.d.ts +49 -0
  90. package/ui.application/ui/components/button-toggle/button-toggle.component.d.ts +26 -0
  91. package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +70 -0
  92. package/ui.application/ui/components/file-preview/file-preview.component.d.ts +4 -8
  93. package/ui.application/ui/messages.d.ts +2 -2
  94. package/clipper.common/common/clipper.d.ts +0 -119
  95. package/clipper.common/common/search.d.ts +0 -49
  96. package/clipper.ui/ui/document/base/document-base.component.d.ts +0 -38
  97. package/clipper.ui/ui/document/document-index/document-index.component.d.ts +0 -38
  98. package/clipper.ui/ui/document/document-menu/document-menu.component.d.ts +0 -30
  99. package/clipper.ui/ui/last-15-days/last-15-days.component.d.ts +0 -41
  100. package/esm2022/clipper.common/common/clipper.mjs +0 -1371
  101. package/esm2022/clipper.common/common/search.mjs +0 -69
  102. package/esm2022/clipper.ui/ui/document/base/document-base.component.mjs +0 -194
  103. package/esm2022/clipper.ui/ui/document/document-index/document-index.component.mjs +0 -121
  104. package/esm2022/clipper.ui/ui/document/document-menu/document-menu.component.mjs +0 -88
  105. package/esm2022/clipper.ui/ui/document/documents.mjs +0 -49
  106. package/esm2022/clipper.ui/ui/last-15-days/last-15-days.component.mjs +0 -107
  107. package/esm2022/help/components/help-search-query-builder/help-search-query-builder.component.mjs +0 -114
  108. package/esm2022/support.common/common/support.mjs +0 -21
  109. package/esm2022/ui.oauth/ui/components/login/loginOAuth.component.mjs +0 -198
  110. package/help/components/help-search-query-builder/help-search-query-builder.component.d.ts +0 -29
  111. package/help/help.scss +0 -72
  112. package/ui.oauth/ui/components/login/loginOAuth.component.d.ts +0 -38
  113. /package/support.common/common/{support.d.ts → definitions.d.ts} +0 -0
package/styles/ui.scss CHANGED
@@ -15,6 +15,12 @@
15
15
  --ars-color-ok-low: #29692c;
16
16
  --ars-color-warning: #FFC107;
17
17
  --ars-color-warning-low: #FFA000;
18
+ --ars-color-text: #191c1b;
19
+ --ars-color-text-low: #e0e2e5;
20
+ --ars-color-divider: #757d87;
21
+ // Drawer
22
+ --ars-drawer-background-color: #eff1ef;
23
+ --ars-drawer-background-color-low: #e0e3e1;
18
24
  // Item
19
25
  --ars-item-hover-background-color: #eaecef;
20
26
  --ars-item-selected-background-color: #ced1d2;
@@ -62,6 +68,25 @@
62
68
  padding-bottom: 8px;
63
69
  }
64
70
 
71
+ .center {
72
+ text-align: center;
73
+ }
74
+
75
+ .wide {
76
+ min-width: 100% !important;
77
+ max-width: 100%;
78
+ width: 100%;
79
+ }
80
+
81
+ .fill {
82
+ min-width: 100% !important;
83
+ max-width: 100%;
84
+ width: 100%;
85
+ min-height: 100% !important;
86
+ max-height: 100%;
87
+ height: 100%;
88
+ }
89
+
65
90
  .scroll-auto {
66
91
  overflow: auto;
67
92
  }
@@ -78,6 +103,10 @@ b {
78
103
  font-size: large !important;
79
104
  }
80
105
 
106
+ .smaller {
107
+ font-size: smaller;
108
+ }
109
+
81
110
  .small {
82
111
  font-size: small !important;
83
112
  }
@@ -120,6 +149,110 @@ b {
120
149
  }
121
150
  }
122
151
 
152
+ .accent {
153
+ color: var(--ars-accent) !important;
154
+ }
155
+
156
+ .primary {
157
+ color: var(--ars-primary) !important;
158
+ }
159
+
160
+ .secondary {
161
+ color: var(--ars-secondary) !important;
162
+ }
163
+
164
+ .error {
165
+ color: var(--ars-error) !important;
166
+ }
167
+
168
+ .warning {
169
+ color: var(--ars-warning) !important;
170
+ }
171
+
172
+ .drawer-content {
173
+ padding-top: 10px;
174
+ }
175
+
176
+ .drawer,
177
+ .drawer-small {
178
+ min-width: 420px !important;
179
+ max-width: 420px !important;
180
+ padding: 20px 5px 5px 5px;
181
+ background-color: var(--ars-drawer-background-color) !important;
182
+
183
+ .title {
184
+ font-size: 1.2em;
185
+ font-weight: 600;
186
+ padding-left: 10px;
187
+ min-width: 200px;
188
+ white-space: nowrap;
189
+ overflow: hidden;
190
+ text-overflow: ellipsis;
191
+ }
192
+
193
+ .fade-in {
194
+ animation: fadein 500ms linear;
195
+ }
196
+
197
+ @keyframes fadein {
198
+ 0% {
199
+ opacity: 0;
200
+ }
201
+
202
+ 100% {
203
+ opacity: 1;
204
+ }
205
+ }
206
+
207
+ .content {
208
+ padding: 10px 0;
209
+ }
210
+
211
+ .fixed {
212
+ padding: 0 4px;
213
+ }
214
+
215
+ .accordion-panel {
216
+ background-color: transparent;
217
+
218
+ }
219
+
220
+ .accordion-header {
221
+ padding-left: 15px;
222
+ padding-right: 20px;
223
+ border-radius: var(--mat-expansion-container-shape);
224
+
225
+ }
226
+
227
+ .mat-expansion-panel-body {
228
+ padding-bottom: 20px !important;
229
+ }
230
+ }
231
+
232
+ .drawer-small {
233
+ min-width: 360px !important;
234
+ max-width: 360px !important;
235
+
236
+ .title {
237
+ min-width: 150px;
238
+ }
239
+
240
+ .content {
241
+ padding: 20px 0 10px 0;
242
+ }
243
+ }
244
+
245
+ @media screen and (min-width: 0px) and (max-width: 359px) {
246
+ .drawer {
247
+ min-width: 360px !important;
248
+ max-width: 360px !important;
249
+
250
+ .title {
251
+ min-width: 150px;
252
+ }
253
+ }
254
+ }
255
+
123
256
  @media (prefers-color-scheme: dark) {
124
257
 
125
258
  :root {
@@ -139,6 +272,13 @@ b {
139
272
  --ars-color-ok-low: #3f8f41;
140
273
  --ars-color-warning: #FFC107;
141
274
  --ars-color-warning-low: #FFA000;
275
+ --ars-color-text: #e0e2e5;
276
+ --ars-color-text-low: #191c1b;
277
+ --ars-color-divider: #757d87;
278
+ ;
279
+ // Drawer
280
+ --ars-drawer-background-color: #323534;
281
+ --ars-drawer-background-color-low: #424444;
142
282
  // Item
143
283
  --ars-item-hover-background-color: #262a29;
144
284
  --ars-item-selected-background-color: #3f4342;
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { ApiResult, LoginInfo, LoginResult } from '@arsedizioni/ars-utils/core';
3
3
  import { Observable } from 'rxjs';
4
- import { SupportNotificationsSearchParams, SupportProduct, SupportProductModule } from '../support';
4
+ import { SupportNotificationsSearchParams, SupportProduct, SupportProductModule } from '../definitions';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SupportService implements OnDestroy {
7
7
  private readonly REFRESH_INTERVAL;
@@ -10,7 +10,7 @@ export declare class SupportService implements OnDestroy {
10
10
  private refreshing;
11
11
  private tokenRefreshTimer?;
12
12
  private tokenRefreshTimerSubscription?;
13
- private messageWatcher?;
13
+ private broadcastServiceSubscription?;
14
14
  private _loginInfo;
15
15
  get loginInfo(): LoginInfo;
16
16
  set loginInfo(value: LoginInfo);
@@ -1,4 +1,4 @@
1
1
  export * from './common/common.module';
2
2
  export * from './common/messages';
3
- export * from './common/support';
3
+ export * from './common/definitions';
4
4
  export * from './common/services/support.service';
@@ -11,4 +11,7 @@ export * from './ui/components/file-input/file-input.component';
11
11
  export * from './ui/components/file-preview/file-preview.component';
12
12
  export * from './ui/components/filter-bar/filter-bar.component';
13
13
  export * from './ui/components/calendar-empty-header/calendar-empy-header.component';
14
+ export * from './ui/components/chips-selector/chips-selector.component';
15
+ export * from './ui/components/button-selector/button-selector.component';
16
+ export * from './ui/components/button-toggle/button-toggle.component';
14
17
  export * from './ui/directives/resize-table-column.directive';
@@ -0,0 +1,49 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { NameValueItem } from '@arsedizioni/ars-utils/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ButtonSelectorComponent implements OnInit, OnDestroy, ControlValueAccessor {
6
+ ngControl: NgControl;
7
+ changed: EventEmitter<NameValueItem<any>>;
8
+ private stateChanges;
9
+ private focused;
10
+ private _value;
11
+ set value(value: NameValueItem<any>[] | any | null);
12
+ get value(): NameValueItem<any>[] | any | null;
13
+ private _disabled;
14
+ get disabled(): boolean;
15
+ set disabled(value: boolean);
16
+ private propagateChange;
17
+ private propagateTouched;
18
+ id: string;
19
+ describedBy: string;
20
+ private renderer;
21
+ protected current: NameValueItem<any> | null;
22
+ width: import("@angular/core").InputSignal<number>;
23
+ border: import("@angular/core").InputSignal<number>;
24
+ borderRadius: import("@angular/core").InputSignal<string>;
25
+ label: import("@angular/core").InputSignal<string>;
26
+ labelSelected: import("@angular/core").InputSignal<string>;
27
+ options: import("@angular/core").InputSignal<NameValueItem<any>[]>;
28
+ autoSelect: import("@angular/core").InputSignal<boolean>;
29
+ constructor(ngControl: NgControl);
30
+ ngOnInit(): void;
31
+ ngOnDestroy(): void;
32
+ writeValue(value: any): void;
33
+ registerOnChange(fn: any): void;
34
+ registerOnTouched(fn: any): void;
35
+ setDescribedByIds(ids: string[]): void;
36
+ setDisabledState?(isDisabled: boolean): void;
37
+ onContainerClick(): void;
38
+ /**
39
+ * Select an element
40
+ * @param item : the item to select
41
+ */
42
+ select(item: NameValueItem<any>): void;
43
+ /**
44
+ * Reset value
45
+ */
46
+ reset(): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonSelectorComponent, [{ optional: true; self: true; }]>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonSelectorComponent, "button-selector", never, { "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelSelected": { "alias": "labelSelected"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "autoSelect": { "alias": "autoSelect"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
49
+ }
@@ -0,0 +1,26 @@
1
+ import { EventEmitter, Signal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface ButtonToggleInfo {
4
+ value: boolean;
5
+ toggled: boolean;
6
+ }
7
+ export declare class ButtonToggleComponent {
8
+ changed: EventEmitter<ButtonToggleInfo>;
9
+ protected current: Signal<boolean>;
10
+ toggled: boolean;
11
+ value: import("@angular/core").InputSignal<boolean>;
12
+ width: import("@angular/core").InputSignal<number>;
13
+ border: import("@angular/core").InputSignal<number>;
14
+ labelOn: import("@angular/core").InputSignal<string>;
15
+ labelOff: import("@angular/core").InputSignal<string>;
16
+ iconOn: import("@angular/core").InputSignal<string>;
17
+ iconOff: import("@angular/core").InputSignal<string>;
18
+ protected label: Signal<string>;
19
+ protected icon: Signal<string>;
20
+ /**
21
+ * Toggle the button
22
+ */
23
+ toggle(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonToggleComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonToggleComponent, "button-toggle", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "labelOn": { "alias": "labelOn"; "required": false; "isSignal": true; }; "labelOff": { "alias": "labelOff"; "required": false; "isSignal": true; }; "iconOn": { "alias": "iconOn"; "required": false; "isSignal": true; }; "iconOff": { "alias": "iconOff"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
26
+ }
@@ -0,0 +1,70 @@
1
+ import { AfterContentInit, EventEmitter, OnDestroy, OnInit, Signal } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { NameValueItem } from '@arsedizioni/ars-utils/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ChipsSelectorComponent implements OnInit, OnDestroy, AfterContentInit, ControlValueAccessor {
6
+ ngControl: NgControl;
7
+ changed: EventEmitter<NameValueItem<any>[]>;
8
+ protected containerId: string;
9
+ protected containerWidth: import("@angular/core").WritableSignal<number>;
10
+ private stateChanges;
11
+ private focused;
12
+ private unsubscribe;
13
+ private changeDetector;
14
+ private broadcastService;
15
+ options: import("@angular/core").InputSignal<NameValueItem<any>[]>;
16
+ collapsedWidth: import("@angular/core").InputSignal<number>;
17
+ collapseAt: import("@angular/core").InputSignal<number>;
18
+ collapseAtContainer: import("@angular/core").InputSignal<boolean>;
19
+ collapseDisplayMode: import("@angular/core").InputSignal<"button" | "dropdown">;
20
+ label: import("@angular/core").InputSignal<string>;
21
+ multiple: import("@angular/core").InputSignal<boolean>;
22
+ mode: import("@angular/core").InputSignal<"collapsed" | "dinamyc">;
23
+ collapsed: Signal<boolean>;
24
+ private _value;
25
+ set value(value: NameValueItem<any>[] | any | null);
26
+ get value(): NameValueItem<any>[] | any | null;
27
+ get empty(): boolean;
28
+ get errorState(): boolean;
29
+ private _required;
30
+ get required(): boolean;
31
+ set required(value: boolean);
32
+ private _disabled;
33
+ get disabled(): boolean;
34
+ set disabled(value: boolean);
35
+ private _placeholder;
36
+ get placeholder(): string;
37
+ set placeholder(value: string);
38
+ private propagateChange;
39
+ private propagateTouched;
40
+ id: string;
41
+ get shouldLabelFloat(): boolean;
42
+ describedBy: string;
43
+ private renderer;
44
+ constructor(ngControl: NgControl);
45
+ ngOnInit(): void;
46
+ ngOnDestroy(): void;
47
+ ngAfterContentInit(): void;
48
+ /**
49
+ * Update container width
50
+ */
51
+ private updateContainerWidth;
52
+ writeValue(value: any): void;
53
+ registerOnChange(fn: any): void;
54
+ registerOnTouched(fn: any): void;
55
+ setDescribedByIds(ids: string[]): void;
56
+ setDisabledState?(isDisabled: boolean): void;
57
+ onContainerClick(): void;
58
+ /**
59
+ * Clear selection
60
+ * @param e : the click event
61
+ */
62
+ clear(e: Event): void;
63
+ /**
64
+ * Select single element
65
+ * @param item : the item to select
66
+ */
67
+ select(item: NameValueItem<any> | null): void;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipsSelectorComponent, [{ optional: true; self: true; }]>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "chips-selector", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "collapsedWidth": { "alias": "collapsedWidth"; "required": false; "isSignal": true; }; "collapseAt": { "alias": "collapseAt"; "required": false; "isSignal": true; }; "collapseAtContainer": { "alias": "collapseAtContainer"; "required": false; "isSignal": true; }; "collapseDisplayMode": { "alias": "collapseDisplayMode"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "changed": "changed"; }, never, never, true, never>;
70
+ }
@@ -6,22 +6,18 @@ export interface FilePreviewDialogData {
6
6
  authToken?: string | null;
7
7
  }
8
8
  export declare class FilePreviewComponent implements OnInit, OnDestroy {
9
+ private height;
9
10
  private unsubscribe;
10
11
  private httpClient;
11
12
  private dialogService;
12
13
  protected dialogData: FilePreviewDialogData;
13
14
  protected url: import("@angular/core").WritableSignal<any>;
14
- protected height: import("@angular/core").WritableSignal<number>;
15
15
  ngOnInit(): void;
16
16
  ngOnDestroy(): void;
17
17
  /**
18
- * Adjust view
19
- */
20
- adjustView(): void;
21
- /**
22
- * Update view
23
- */
24
- updateView(): void;
18
+ * Resize
19
+ */
20
+ private resize;
25
21
  /**
26
22
  * Download manually
27
23
  */
@@ -1,6 +1,6 @@
1
- export declare const UtilsMessages: {
1
+ export declare const ArsUIApplicationMessages: {
2
2
  /**
3
3
  * Messages
4
4
  */
5
- UTILS_DIALOGS_SELECT_OPTIONS_CHANGED: string;
5
+ UI_LAYOUT_CHANGED: string;
6
6
  };
@@ -1,119 +0,0 @@
1
- export declare enum ClipperSelectionMode {
2
- Single = 1,
3
- Multi = 2,
4
- Any = 3
5
- }
6
- export interface ClipperDialogData {
7
- selectionMode?: ClipperSelectionMode;
8
- selectableModels?: number[];
9
- initialModel?: number;
10
- }
11
- export declare const ClipperDefinitions: {
12
- MOD_NEWS: number;
13
- MOD_AGGIORNAMENTO_NORMATIVO: number;
14
- MOD_COORDINAMENTO: number;
15
- MOD_NORMATIVA_VIGENTE: number;
16
- MOD_JURIS: number;
17
- MOD_ARTICOLI: number;
18
- MOD_ALLERTE_ALIMENTARI: number;
19
- MOD_GUIDE: number;
20
- MOD_QUESITI: number;
21
- MOD_METODI_ANALISI: number;
22
- MOD_SCADENZE_SEGNALAZIONI: number;
23
- MOD_CALENDARIO: number;
24
- MOD_SEMANTIC_SEARCH: number;
25
- DM_UNKNOWN: number;
26
- DM_GUIDA: number;
27
- DM_AGGIORNAMENTO_NORMATIVO: number;
28
- DM_NEWS: number;
29
- DM_ARTICOLO: number;
30
- DM_JURIS: number;
31
- DM_QUESITO: number;
32
- DM_NORMATIVA_VIGENTE: number;
33
- DM_SCADENZA: number;
34
- DM_COORDINAMENTO: number;
35
- DM_ALLERTE_ALIMENTARI: number;
36
- DM_METODI_ANALISI: number;
37
- DM_GUIDA_NORMATIVA: number;
38
- DM_SCHEDA_ADEMPIMENTI: number;
39
- DM_APPROFONDIMENTO: number;
40
- DM_GIURISPRUDENZA_RECENTE: number;
41
- DM_SCADENZA_SEGNALAZIONE: number;
42
- DM_SEGNALAZIONE: number;
43
- FAC_SECTOR: number;
44
- FAC_YEAR: number;
45
- FAC_DOCUMENTTYPE: number;
46
- FAC_TOPIC: number;
47
- FAC_ARTICLE: number;
48
- FAC_AUTHOR: number;
49
- FAC_REASON: number;
50
- SRT_DEFAULT: number;
51
- SRT_RELEVANCE: number;
52
- SRT_DATE_ASC: number;
53
- SRT_DATE_DESC: number;
54
- SRT_ORIGINAL: number;
55
- SRT_POPULARITY: number;
56
- SRT_TAXONOMY: number;
57
- SM_REFERENCES_IN: number;
58
- SM_REFERENCES_OUT: number;
59
- SM_CHANGES_IN: number;
60
- SM_CHANGES_OUT: number;
61
- SM_JURIS: number;
62
- FT_NONE: number;
63
- FT_NOTES: number;
64
- FT_TEXT: number;
65
- FT_ARTICLE: number;
66
- FT_ATTACHMENT: number;
67
- FT_PART_HEAD: number;
68
- FT_PART_TITLE: number;
69
- FT_PART_CHAPTER: number;
70
- FT_PART: number;
71
- FT_PART_SECTION: number;
72
- FT_APPENDIX: number;
73
- FT_FILE: number;
74
- MARK_APPLICABLE: number;
75
- MARK_NOT_APPLICABLE: number;
76
- REGIONS: {
77
- id: string;
78
- name: string;
79
- }[];
80
- MODELS: {
81
- id: string;
82
- name: string;
83
- }[];
84
- SECTORS: {
85
- id: string;
86
- name: string;
87
- group: string;
88
- channels: string;
89
- }[];
90
- SECTOR_AUTHORS: {
91
- sectorId: string;
92
- scope: string;
93
- authorId: string;
94
- authorDescription: string;
95
- }[];
96
- SECTOR_TYPES: ({
97
- sectorId: string;
98
- documentTypeId: string;
99
- documentTypeDescription: string;
100
- documentTypeID?: undefined;
101
- } | {
102
- sectorId: string;
103
- documentTypeID: string;
104
- documentTypeDescription: string;
105
- documentTypeId?: undefined;
106
- })[];
107
- SOURCES: {
108
- id: string;
109
- name: string;
110
- }[];
111
- CHANGE_REASONS: {
112
- name: string;
113
- value: number;
114
- }[];
115
- CALENDAR_STATES: {
116
- value: number;
117
- name: string;
118
- }[];
119
- };
@@ -1,49 +0,0 @@
1
- export interface ClipperSearchParams {
2
- text?: string;
3
- titleOnly?: boolean;
4
- showUnreadDocumentsOnly?: boolean;
5
- showCommentedDocumentsOnly?: boolean;
6
- number?: string;
7
- fromDate?: Date;
8
- toDate?: Date;
9
- sourceNumber?: string;
10
- source?: string;
11
- sourceFromDate?: Date;
12
- sourceToDate?: Date;
13
- sector?: string;
14
- topic?: string;
15
- taxonomy?: string;
16
- taxonomyPath?: string;
17
- taxonomyNode?: string;
18
- type?: string;
19
- author?: number | string;
20
- reason?: number | string;
21
- changedNumber?: string;
22
- changedYear?: number;
23
- changedTitle?: string;
24
- modifierNumber?: string;
25
- modifierYear?: number;
26
- modifierTitle?: string;
27
- model?: number;
28
- module?: number;
29
- sortMode?: number;
30
- year?: number;
31
- count?: number;
32
- first?: number;
33
- }
34
- export declare class SearchUtils {
35
- static clear(params: ClipperSearchParams): void;
36
- /**
37
- * Try to add a query
38
- * @param q : the new query
39
- * @param queries : the new query
40
- * @returns
41
- */
42
- private static concatTextQuery;
43
- /**
44
- * Normalize text query
45
- * @param text : the text query to normalize
46
- * @returns : the text normalized
47
- */
48
- static normalizeTextQuery(text: string): string;
49
- }
@@ -1,38 +0,0 @@
1
- import { ClipperService } from '@arsedizioni/ars-utils/clipper.common';
2
- import { DialogService } from '@arsedizioni/ars-utils/ui';
3
- import * as i0 from "@angular/core";
4
- export declare class ClipperDocumentBaseComponent {
5
- $dialog: DialogService;
6
- $clipper: ClipperService;
7
- constructor($dialog: DialogService, $clipper: ClipperService);
8
- /**
9
- * Export a document in pdf format
10
- * @param item : the document to export
11
- */
12
- exportPdf(item: any): void;
13
- /**
14
- * Save current document list or just the selected documents as a csv
15
- * @param items: the item list
16
- * @param searchParams: the search params
17
- */
18
- exportItems(items: any, searchParams?: any): void;
19
- addToBag(items: any): void;
20
- /**
21
- * Show a document permalink
22
- * @param item : the item to show the link for
23
- */
24
- showLink(item: any): void;
25
- /**
26
- * Send documents links by email
27
- * @param items : the document list
28
- */
29
- sendItemsTo(items: any): void;
30
- /**
31
- * Display a document report
32
- * @param documentId : the document id
33
- * @param title: the document short title
34
- */
35
- openReport(documentId: string, title?: string): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentBaseComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentBaseComponent, "ng-component", never, {}, {}, never, never, true, never>;
38
- }
@@ -1,38 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { MatSelectionList } from '@angular/material/list';
4
- import { DialogService } from '@arsedizioni/ars-utils/ui';
5
- import { ClipperService } from '@arsedizioni/ars-utils/clipper.common';
6
- import * as i0 from "@angular/core";
7
- export interface ClipperDocumentIndexDialogData {
8
- documentId: string;
9
- excludedTypes?: number[];
10
- multiple?: boolean;
11
- }
12
- export declare class ClipperDocumentIndexComponent {
13
- private $dialog;
14
- private $clipper;
15
- dialogRef: MatDialogRef<ClipperDocumentIndexComponent>;
16
- selection: MatSelectionList;
17
- done: EventEmitter<any>;
18
- data: ClipperDocumentIndexDialogData;
19
- items: any;
20
- okDisabled: boolean;
21
- constructor($dialog: DialogService, $clipper: ClipperService, dialogRef: MatDialogRef<ClipperDocumentIndexComponent>, _data: ClipperDocumentIndexDialogData);
22
- /**
23
- * Display document structure
24
- * @param documentId : the document id
25
- * @param excludedTypes: the array of fragment type to be excluded off
26
- */
27
- load(documentId: string, excludedTypes?: number[]): void;
28
- /**
29
- * Handle selection/deselection of an item
30
- */
31
- select(): void;
32
- /**
33
- * Confirm selection
34
- */
35
- use(item?: any): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentIndexComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentIndexComponent, "ng-component", never, {}, { "done": "done"; }, never, never, true, never>;
38
- }
@@ -1,30 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ClipperService } from '@arsedizioni/ars-utils/clipper.common';
3
- import * as i0 from "@angular/core";
4
- export declare class ClipperDocumentMenuComponent implements OnInit {
5
- $clipper: ClipperService;
6
- selectionSource: string;
7
- parent: any;
8
- item: any;
9
- isReference: boolean;
10
- isReadable: boolean;
11
- isSelectable: boolean;
12
- isDeadline: boolean;
13
- isLawInForce: boolean;
14
- isLaw: boolean;
15
- selection: any;
16
- constructor($clipper: ClipperService);
17
- ngOnInit(): void;
18
- /**
19
- * Clear current selection
20
- */
21
- clearSelection(): void;
22
- /**
23
- * Checks if all documents are supported by RS
24
- * @param documents : the list of documens
25
- * @returns: true if all documents supports RS
26
- */
27
- RS_enabled(documents: any): boolean;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentMenuComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentMenuComponent, "clipper-document-menu", never, { "selectionSource": { "alias": "selectionSource"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "item": { "alias": "item"; "required": false; }; "isReference": { "alias": "isReference"; "required": false; }; "isReadable": { "alias": "isReadable"; "required": false; }; "isSelectable": { "alias": "isSelectable"; "required": false; }; "isDeadline": { "alias": "isDeadline"; "required": false; }; "isLawInForce": { "alias": "isLawInForce"; "required": false; }; "isLaw": { "alias": "isLaw"; "required": false; }; }, {}, never, never, true, never>;
30
- }