@uxland/primary-shell 5.6.0 → 5.6.1

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.
@@ -2,7 +2,6 @@ import { Container, interfaces } from 'inversify';
2
2
  import { IRequestClass } from '..';
3
3
  import { PrimariaApi } from '../api/api';
4
4
 
5
- import Newable = interfaces.Newable;
6
- export declare const registerRequest: (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: Newable<any>) => {
5
+ export declare const registerRequest: (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: interfaces.Newable<any>) => {
7
6
  dispose: () => void;
8
7
  };
@@ -0,0 +1,19 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { IActivityHistoryGroup } from '../../../domain/model';
3
+
4
+ export declare class ActivityHistoryTimeline extends LitElement {
5
+ render(): import('lit').TemplateResult<1>;
6
+ static styles: import('lit').CSSResult;
7
+ historyGroups: IActivityHistoryGroup[];
8
+ isCollectionInitialState: boolean;
9
+ isSomeCollectionLoadedAndOtherLoading: boolean;
10
+ searchString: string;
11
+ private _virtualizer;
12
+ _hasUpdatedOnce: boolean;
13
+ firstUpdated(_changeProps: PropertyValues): void;
14
+ updated(changedProperties: any): Promise<void>;
15
+ prepareComponents(historyGroups: any): Promise<void>;
16
+ highlightMatch(text: string, searchString: string): string;
17
+ highlighted(text?: string): import('lit/directive.js').DirectiveResult<typeof import('lit/directives/unsafe-html.js').UnsafeHTMLDirective> | null;
18
+ _scrollIntoDate(selectedDate: number): void;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -57,16 +57,13 @@
57
57
  display: flex;
58
58
  flex-direction: column;
59
59
  gap: 4px;
60
- }
61
-
62
- /*Temporary scrollbar*/
63
- #menu-region-container {
64
60
  overflow-y: auto;
65
61
  margin-right: -14px;
66
62
  padding-right: 14px;
67
63
  scrollbar-color: var(--color-primary-200) var(--color-primary-700);
68
64
  scrollbar-width: thin;
69
65
  }
66
+
70
67
  #menu-region-container::-webkit-scrollbar {
71
68
  width: 6px;
72
69
  }
@@ -77,7 +74,6 @@
77
74
  background-color: var(--color-primary-400);
78
75
  border-radius: 4px;
79
76
  }
80
- /**/
81
77
 
82
78
  .bottom-content {
83
79
  display: flex;
@@ -964,6 +964,3 @@ button.ql-indent {
964
964
  .ql-snow a {
965
965
  color: #06c;
966
966
  }
967
- .ql-container.ql-snow {
968
-
969
- }
@@ -1,12 +1,12 @@
1
- import { Container, injectable, interfaces } from "inversify";
1
+ import { Container, injectable } from "inversify";
2
+ import type { interfaces } from "inversify";
2
3
  import { IRequest, IRequestClass } from "..";
3
4
  import { PrimariaApi } from "../api/api";
4
- import Newable = interfaces.Newable;
5
5
 
6
6
  //TODO aixo ho fan ja les Broker extensions de plugins/core. Veure si s'ha de canviar
7
7
  export const registerRequest =
8
8
  (api: PrimariaApi, container: Container) =>
9
- (command: IRequestClass<any>, handler: Newable<any>) => {
9
+ (command: IRequestClass<any>, handler: interfaces.Newable<any>) => {
10
10
  container.bind(handler).to(handler).inTransientScope();
11
11
  injectable()(handler);
12
12
  const disposable = api.broker.registerRequest(command, (cmd: IRequest<any>) => {
@@ -160,7 +160,7 @@ export const template = (props: ActiveFiltersBadges) => {
160
160
  filterOption = { title: deletedFiltersOption, id: deletedFiltersOption };
161
161
  }
162
162
 
163
- const chip2 = renderChip(id, filter, normalizeDeletedFilterBooleanValue(value), props);
163
+ //const chip2 = renderChip(id, filter, normalizeDeletedFilterBooleanValue(value), props);
164
164
 
165
165
  const chip = renderChip(id, filter, filterOption, props);
166
166
 
@@ -30,6 +30,12 @@ const setMultipleOptionsFilterValue = (
30
30
  const { optionId, enabled } = payload;
31
31
  //Si el option ya estaba habilitado, no cambiamos nada
32
32
  if (filter.enabledValues?.some((id) => id === optionId) && enabled) return filter;
33
+ //Si no hay option id, devolvemos enabledValues vació, para evitar meter un undefined
34
+ if(optionId === undefined || optionId === null)
35
+ return {
36
+ ...filter,
37
+ enabledValues: [],
38
+ };
33
39
  return {
34
40
  ...filter,
35
41
  enabledValues: enabled
@@ -1,7 +0,0 @@
1
- import { Container } from 'inversify';
2
-
3
- declare const container: Container;
4
- declare const lazyInject: (serviceIdentifier: string | symbol | import("inversify").interfaces.Newable<any> | import("inversify").interfaces.Abstract<any>) => (proto: any, key: string) => void;
5
- export { container, lazyInject };
6
- export declare const registerDep: (dep: any) => void;
7
- export declare const unregisterDep: (dep: any) => void;
@@ -1,8 +0,0 @@
1
- import { Container } from 'inversify';
2
- import { PrimariaApi } from '../../../../api/api';
3
-
4
- declare const container: Container;
5
- declare const lazyInject: (serviceIdentifier: string | symbol | import("inversify").interfaces.Newable<any> | import("inversify").interfaces.Abstract<any>) => (proto: any, key: string) => void;
6
- export { container, lazyInject };
7
- export declare const bindDeps: (api: PrimariaApi) => void;
8
- export declare const unbindDeps: () => void;