@leav/ui 1.8.0-c4bc6f9a → 1.8.0

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 (53) hide show
  1. package/dist/_gqlTypes/index.d.ts +0 -91
  2. package/dist/_gqlTypes/index.js +0 -55
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -3
  5. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  6. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +0 -3
  7. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  8. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +8 -17
  9. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  10. package/dist/components/Filters/_types.d.ts +1 -12
  11. package/dist/components/Filters/_types.js +1 -2
  12. package/dist/components/Filters/_types.js.map +1 -1
  13. package/dist/components/Filters/context/filtersReducer.js +2 -3
  14. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  15. package/dist/components/Filters/filter-items/CommonFilterItem.js +2 -2
  16. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  17. package/dist/components/Filters/filter-items/{shared/EmptyValueCheckbox.d.ts → EmptyValueCheckbox.d.ts} +1 -2
  18. package/dist/components/Filters/filter-items/EmptyValueCheckbox.js +16 -0
  19. package/dist/components/Filters/filter-items/EmptyValueCheckbox.js.map +1 -0
  20. package/dist/components/Filters/filter-items/{shared/SelectAllCheckbox.js → SelectAllCheckbox.js} +1 -1
  21. package/dist/components/Filters/filter-items/SelectAllCheckbox.js.map +1 -0
  22. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js +1 -1
  23. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  24. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +1 -5
  25. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  26. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +3 -3
  27. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  28. package/dist/components/Filters/filter-items/filter-type/_types.d.ts +1 -6
  29. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
  30. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +4 -5
  31. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  32. package/dist/components/Filters/prepareFiltersForRequest.js +5 -10
  33. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  34. package/dist/components/Filters/useFilters.d.ts +0 -542
  35. package/dist/components/Filters/useTransformFilters.js +0 -3
  36. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  37. package/package.json +1 -1
  38. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.d.ts +0 -2
  39. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +0 -106
  40. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +0 -1
  41. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.d.ts +0 -25
  42. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +0 -59
  43. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +0 -1
  44. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.d.ts +0 -5
  45. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -25
  46. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +0 -1
  47. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js +0 -20
  48. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +0 -1
  49. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.d.ts +0 -5
  50. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -18
  51. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +0 -1
  52. package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +0 -1
  53. /package/dist/components/Filters/filter-items/{shared/SelectAllCheckbox.d.ts → SelectAllCheckbox.d.ts} +0 -0
@@ -986,9 +986,6 @@ export type AttributeDetailsLinkAttributeFragment = {
986
986
  id: string;
987
987
  label?: any | null;
988
988
  } | null;
989
- smart_filter?: {
990
- enable: boolean;
991
- } | null;
992
989
  metadata_fields?: Array<{
993
990
  id: string;
994
991
  label?: any | null;
@@ -3324,9 +3321,6 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
3324
3321
  linked_library?: {
3325
3322
  id: string;
3326
3323
  } | null;
3327
- smart_filter?: {
3328
- enable: boolean;
3329
- } | null;
3330
3324
  };
3331
3325
  export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
3332
3326
  id: string;
@@ -3413,9 +3407,6 @@ export type AttributesByLibLinkAttributeWithPermissionsFragment = {
3413
3407
  linked_library?: {
3414
3408
  id: string;
3415
3409
  } | null;
3416
- smart_filter?: {
3417
- enable: boolean;
3418
- } | null;
3419
3410
  };
3420
3411
  export type StandardAttributeDetailsFragment = {
3421
3412
  id: string;
@@ -3453,9 +3444,6 @@ export type LinkAttributeDetailsFragment = {
3453
3444
  };
3454
3445
  }> | null;
3455
3446
  } | null;
3456
- smart_filter?: {
3457
- enable: boolean;
3458
- } | null;
3459
3447
  };
3460
3448
  export type TreeAttributeDetailsFragment = {
3461
3449
  id: string;
@@ -3820,9 +3808,6 @@ export type GetAttributeByIdQuery = {
3820
3808
  id: string;
3821
3809
  label?: any | null;
3822
3810
  } | null;
3823
- smart_filter?: {
3824
- enable: boolean;
3825
- } | null;
3826
3811
  metadata_fields?: Array<{
3827
3812
  id: string;
3828
3813
  label?: any | null;
@@ -4046,9 +4031,6 @@ export type SaveAttributeMutation = {
4046
4031
  id: string;
4047
4032
  label?: any | null;
4048
4033
  } | null;
4049
- smart_filter?: {
4050
- enable: boolean;
4051
- } | null;
4052
4034
  metadata_fields?: Array<{
4053
4035
  id: string;
4054
4036
  label?: any | null;
@@ -7506,9 +7488,6 @@ export type GetAttributesByLibWithPermissionsQuery = {
7506
7488
  linked_library?: {
7507
7489
  id: string;
7508
7490
  } | null;
7509
- smart_filter?: {
7510
- enable: boolean;
7511
- } | null;
7512
7491
  permissions: {
7513
7492
  access_attribute: boolean;
7514
7493
  };
@@ -7603,9 +7582,6 @@ export type ExplorerAttributesQuery = {
7603
7582
  };
7604
7583
  }> | null;
7605
7584
  } | null;
7606
- smart_filter?: {
7607
- enable: boolean;
7608
- } | null;
7609
7585
  permissions: {
7610
7586
  access_attribute: boolean;
7611
7587
  };
@@ -7671,9 +7647,6 @@ export type ExplorerLinkAttributeQuery = {
7671
7647
  };
7672
7648
  }> | null;
7673
7649
  } | null;
7674
- smart_filter?: {
7675
- enable: boolean;
7676
- } | null;
7677
7650
  permissions: {
7678
7651
  access_attribute: boolean;
7679
7652
  edit_value: boolean;
@@ -8052,30 +8025,6 @@ export type UpdateViewMutation = {
8052
8025
  }> | null;
8053
8026
  };
8054
8027
  };
8055
- export type SmartFilterListValuesQueryVariables = Exact<{
8056
- library: Scalars['ID']['input'];
8057
- attribute: Scalars['ID']['input'];
8058
- recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
8059
- }>;
8060
- export type SmartFilterListValuesQuery = {
8061
- listDistinctValues?: Array<{
8062
- count: number;
8063
- value?: {
8064
- id: string;
8065
- whoAmI: {
8066
- id: string;
8067
- label?: string | null;
8068
- subLabel?: string | null;
8069
- color?: string | null;
8070
- preview?: IPreviewScalar | null;
8071
- library: {
8072
- id: string;
8073
- label?: any | null;
8074
- };
8075
- };
8076
- } | null;
8077
- }> | null;
8078
- };
8079
8028
  export type NotificationSubscriptionVariables = Exact<{
8080
8029
  [key: string]: never;
8081
8030
  }>;
@@ -10420,46 +10369,6 @@ export declare function useUpdateViewMutation(baseOptions?: Apollo.MutationHookO
10420
10369
  export type UpdateViewMutationHookResult = ReturnType<typeof useUpdateViewMutation>;
10421
10370
  export type UpdateViewMutationResult = Apollo.MutationResult<UpdateViewMutation>;
10422
10371
  export type UpdateViewMutationOptions = Apollo.BaseMutationOptions<UpdateViewMutation, UpdateViewMutationVariables>;
10423
- export declare const SmartFilterListValuesDocument: Apollo.DocumentNode;
10424
- /**
10425
- * __useSmartFilterListValuesQuery__
10426
- *
10427
- * To run a query within a React component, call `useSmartFilterListValuesQuery` and pass it any options that fit your needs.
10428
- * When your component renders, `useSmartFilterListValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
10429
- * you can use to render your UI.
10430
- *
10431
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
10432
- *
10433
- * @example
10434
- * const { data, loading, error } = useSmartFilterListValuesQuery({
10435
- * variables: {
10436
- * library: // value for 'library'
10437
- * attribute: // value for 'attribute'
10438
- * recordFilters: // value for 'recordFilters'
10439
- * },
10440
- * });
10441
- */
10442
- export declare function useSmartFilterListValuesQuery(baseOptions: Apollo.QueryHookOptions<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables> & ({
10443
- variables: SmartFilterListValuesQueryVariables;
10444
- skip?: boolean;
10445
- } | {
10446
- skip: boolean;
10447
- })): Apollo.QueryResult<SmartFilterListValuesQuery, Exact<{
10448
- library: Scalars["ID"]["input"];
10449
- attribute: Scalars["ID"]["input"];
10450
- recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
10451
- }>>;
10452
- export declare function useSmartFilterListValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables>): Apollo.LazyQueryResultTuple<SmartFilterListValuesQuery, Exact<{
10453
- library: Scalars["ID"]["input"];
10454
- attribute: Scalars["ID"]["input"];
10455
- recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
10456
- }>>;
10457
- export declare function useSmartFilterListValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables>): Apollo.UseSuspenseQueryResult<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables>;
10458
- export declare function useSmartFilterListValuesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables>): Apollo.UseSuspenseQueryResult<SmartFilterListValuesQuery | undefined, SmartFilterListValuesQueryVariables>;
10459
- export type SmartFilterListValuesQueryHookResult = ReturnType<typeof useSmartFilterListValuesQuery>;
10460
- export type SmartFilterListValuesLazyQueryHookResult = ReturnType<typeof useSmartFilterListValuesLazyQuery>;
10461
- export type SmartFilterListValuesSuspenseQueryHookResult = ReturnType<typeof useSmartFilterListValuesSuspenseQuery>;
10462
- export type SmartFilterListValuesQueryResult = Apollo.QueryResult<SmartFilterListValuesQuery, SmartFilterListValuesQueryVariables>;
10463
10372
  export declare const NotificationDocument: Apollo.DocumentNode;
10464
10373
  /**
10465
10374
  * __useNotificationSubscription__
@@ -435,9 +435,6 @@ export const AttributeDetailsFragmentDoc = gql `
435
435
  label
436
436
  }
437
437
  reverse_link
438
- smart_filter {
439
- enable
440
- }
441
438
  }
442
439
  ... on TreeAttribute {
443
440
  linked_tree {
@@ -976,9 +973,6 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
976
973
  linked_library {
977
974
  id
978
975
  }
979
- smart_filter {
980
- enable
981
- }
982
976
  }
983
977
  ${RecordIdentityFragmentDoc}`;
984
978
  export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
@@ -1061,9 +1055,6 @@ export const LinkAttributeDetailsFragmentDoc = gql `
1061
1055
  }
1062
1056
  }
1063
1057
  }
1064
- smart_filter {
1065
- enable
1066
- }
1067
1058
  }
1068
1059
  `;
1069
1060
  export const TreeAttributeDetailsFragmentDoc = gql `
@@ -3981,52 +3972,6 @@ export function useUpdateViewMutation(baseOptions) {
3981
3972
  const options = { ...defaultOptions, ...baseOptions };
3982
3973
  return Apollo.useMutation(UpdateViewDocument, options);
3983
3974
  }
3984
- export const SmartFilterListValuesDocument = gql `
3985
- query SmartFilterListValues($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3986
- listDistinctValues(
3987
- library: $library
3988
- attribute: $attribute
3989
- recordFilters: $recordFilters
3990
- ) {
3991
- ... on LinkDistinctValues {
3992
- count
3993
- value {
3994
- ...RecordIdentity
3995
- }
3996
- }
3997
- }
3998
- }
3999
- ${RecordIdentityFragmentDoc}`;
4000
- /**
4001
- * __useSmartFilterListValuesQuery__
4002
- *
4003
- * To run a query within a React component, call `useSmartFilterListValuesQuery` and pass it any options that fit your needs.
4004
- * When your component renders, `useSmartFilterListValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4005
- * you can use to render your UI.
4006
- *
4007
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
4008
- *
4009
- * @example
4010
- * const { data, loading, error } = useSmartFilterListValuesQuery({
4011
- * variables: {
4012
- * library: // value for 'library'
4013
- * attribute: // value for 'attribute'
4014
- * recordFilters: // value for 'recordFilters'
4015
- * },
4016
- * });
4017
- */
4018
- export function useSmartFilterListValuesQuery(baseOptions) {
4019
- const options = { ...defaultOptions, ...baseOptions };
4020
- return Apollo.useQuery(SmartFilterListValuesDocument, options);
4021
- }
4022
- export function useSmartFilterListValuesLazyQuery(baseOptions) {
4023
- const options = { ...defaultOptions, ...baseOptions };
4024
- return Apollo.useLazyQuery(SmartFilterListValuesDocument, options);
4025
- }
4026
- export function useSmartFilterListValuesSuspenseQuery(baseOptions) {
4027
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4028
- return Apollo.useSuspenseQuery(SmartFilterListValuesDocument, options);
4029
- }
4030
3975
  export const NotificationDocument = gql `
4031
3976
  subscription Notification {
4032
3977
  notification {