@leav/ui 1.12.0-69ccbdbf → 1.12.0-895973f3
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/dist/_gqlTypes/index.d.ts +40 -61
- package/dist/_gqlTypes/index.js +12 -5
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/components/Explorer/DataView.js +30 -13
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.js +2 -2
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +14 -6
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -4
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
- package/dist/components/Filters/_types.d.ts +3 -0
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +14 -1
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +198 -0
- package/dist/components/Filters/useTransformFilters.js +4 -2
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +10 -3
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +11 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +25 -13
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +3 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
- package/package.json +9 -9
|
@@ -247,16 +247,6 @@ export declare enum AvailableLanguage {
|
|
|
247
247
|
en = "en",
|
|
248
248
|
fr = "fr"
|
|
249
249
|
}
|
|
250
|
-
export type CampaignToRenew = {
|
|
251
|
-
endDate: Scalars['String']['input'];
|
|
252
|
-
id: Scalars['String']['input'];
|
|
253
|
-
startDate: Scalars['String']['input'];
|
|
254
|
-
};
|
|
255
|
-
export type CampaignToUpdateDates = {
|
|
256
|
-
endDate: Scalars['String']['input'];
|
|
257
|
-
id: Scalars['String']['input'];
|
|
258
|
-
startDate: Scalars['String']['input'];
|
|
259
|
-
};
|
|
260
250
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
261
251
|
action: RecordPermissionsActions;
|
|
262
252
|
attributeId: Scalars['ID']['input'];
|
|
@@ -498,10 +488,6 @@ export type LogTopicRecordFilterInput = {
|
|
|
498
488
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
499
489
|
libraryId?: InputMaybe<Scalars['String']['input']>;
|
|
500
490
|
};
|
|
501
|
-
export type MapValueInput = {
|
|
502
|
-
after?: InputMaybe<Scalars['ID']['input']>;
|
|
503
|
-
before?: InputMaybe<Scalars['ID']['input']>;
|
|
504
|
-
};
|
|
505
491
|
export declare enum MultiDisplayOption {
|
|
506
492
|
avatar = "avatar",
|
|
507
493
|
badge_qty = "badge_qty",
|
|
@@ -696,49 +682,13 @@ export type RecordsPagination = {
|
|
|
696
682
|
limit: Scalars['Int']['input'];
|
|
697
683
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
698
684
|
};
|
|
699
|
-
export type
|
|
700
|
-
|
|
701
|
-
values: Array<
|
|
702
|
-
withEmptyValues?: InputMaybe<Scalars['Boolean']['input']>;
|
|
703
|
-
};
|
|
704
|
-
export type ReportFramingAttributeFilterValueItemInput = {
|
|
705
|
-
formattedValue?: InputMaybe<Scalars['String']['input']>;
|
|
706
|
-
rawValue: Scalars['String']['input'];
|
|
685
|
+
export type SaveValueBulkMappingInput = {
|
|
686
|
+
dependenciesFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>>>;
|
|
687
|
+
values: Array<SaveValueBulkMappingValueInput>;
|
|
707
688
|
};
|
|
708
|
-
export type
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
id: Scalars['String']['input'];
|
|
712
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
713
|
-
thematics: Array<ReportFramingThematicInput>;
|
|
714
|
-
};
|
|
715
|
-
export type ReportFramingCategoryInput = {
|
|
716
|
-
categoryId: Scalars['String']['input'];
|
|
717
|
-
children: Array<ReportFramingCategoryInput>;
|
|
718
|
-
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
719
|
-
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
720
|
-
id?: InputMaybe<Scalars['String']['input']>;
|
|
721
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
722
|
-
};
|
|
723
|
-
export type ReportFramingContentInput = {
|
|
724
|
-
campaigns: Array<ReportFramingCampaignInput>;
|
|
725
|
-
filters?: InputMaybe<ReportFramingFiltersInput>;
|
|
726
|
-
};
|
|
727
|
-
export type ReportFramingFiltersInput = {
|
|
728
|
-
attributes?: InputMaybe<Array<ReportFramingAttributeFilterItemInput>>;
|
|
729
|
-
search?: InputMaybe<Scalars['String']['input']>;
|
|
730
|
-
};
|
|
731
|
-
export type ReportFramingItemInput = {
|
|
732
|
-
columnId: Scalars['String']['input'];
|
|
733
|
-
referenceValue?: InputMaybe<Scalars['Int']['input']>;
|
|
734
|
-
value?: InputMaybe<Scalars['Int']['input']>;
|
|
735
|
-
};
|
|
736
|
-
export type ReportFramingThematicInput = {
|
|
737
|
-
categories: Array<ReportFramingCategoryInput>;
|
|
738
|
-
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
739
|
-
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
740
|
-
id: Scalars['String']['input'];
|
|
741
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
689
|
+
export type SaveValueBulkMappingValueInput = {
|
|
690
|
+
after?: InputMaybe<Scalars['ID']['input']>;
|
|
691
|
+
before?: InputMaybe<Scalars['ID']['input']>;
|
|
742
692
|
};
|
|
743
693
|
export type SheetInput = {
|
|
744
694
|
keyIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -803,14 +753,16 @@ export declare enum TaskStatus {
|
|
|
803
753
|
}
|
|
804
754
|
export declare enum TaskType {
|
|
805
755
|
EXPORT = "EXPORT",
|
|
806
|
-
FRAMING_REPORT = "FRAMING_REPORT",
|
|
807
756
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
808
757
|
IMPORT_DATA = "IMPORT_DATA",
|
|
809
758
|
INDEXATION = "INDEXATION",
|
|
810
759
|
PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
|
|
811
|
-
RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
|
|
812
760
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
813
761
|
}
|
|
762
|
+
export type ThematicToRenew = {
|
|
763
|
+
campaignId: Scalars['String']['input'];
|
|
764
|
+
thematicId: Scalars['String']['input'];
|
|
765
|
+
};
|
|
814
766
|
export declare enum TreeBehavior {
|
|
815
767
|
files = "files",
|
|
816
768
|
standard = "standard"
|
|
@@ -1035,6 +987,9 @@ export type AttributeDetailsLinkAttributeFragment = {
|
|
|
1035
987
|
} | null;
|
|
1036
988
|
smart_filter?: {
|
|
1037
989
|
enable: boolean;
|
|
990
|
+
through?: {
|
|
991
|
+
id: string;
|
|
992
|
+
} | null;
|
|
1038
993
|
} | null;
|
|
1039
994
|
metadata_fields?: Array<{
|
|
1040
995
|
id: string;
|
|
@@ -3373,6 +3328,9 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
|
|
|
3373
3328
|
} | null;
|
|
3374
3329
|
smart_filter?: {
|
|
3375
3330
|
enable: boolean;
|
|
3331
|
+
through?: {
|
|
3332
|
+
id: string;
|
|
3333
|
+
} | null;
|
|
3376
3334
|
} | null;
|
|
3377
3335
|
};
|
|
3378
3336
|
export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
|
|
@@ -3462,6 +3420,9 @@ export type AttributesByLibLinkAttributeWithPermissionsFragment = {
|
|
|
3462
3420
|
} | null;
|
|
3463
3421
|
smart_filter?: {
|
|
3464
3422
|
enable: boolean;
|
|
3423
|
+
through?: {
|
|
3424
|
+
id: string;
|
|
3425
|
+
} | null;
|
|
3465
3426
|
} | null;
|
|
3466
3427
|
};
|
|
3467
3428
|
export type StandardAttributeDetailsFragment = {
|
|
@@ -3502,6 +3463,9 @@ export type LinkAttributeDetailsFragment = {
|
|
|
3502
3463
|
} | null;
|
|
3503
3464
|
smart_filter?: {
|
|
3504
3465
|
enable: boolean;
|
|
3466
|
+
through?: {
|
|
3467
|
+
id: string;
|
|
3468
|
+
} | null;
|
|
3505
3469
|
} | null;
|
|
3506
3470
|
};
|
|
3507
3471
|
export type TreeAttributeDetailsFragment = {
|
|
@@ -3876,6 +3840,9 @@ export type GetAttributeByIdQuery = {
|
|
|
3876
3840
|
} | null;
|
|
3877
3841
|
smart_filter?: {
|
|
3878
3842
|
enable: boolean;
|
|
3843
|
+
through?: {
|
|
3844
|
+
id: string;
|
|
3845
|
+
} | null;
|
|
3879
3846
|
} | null;
|
|
3880
3847
|
metadata_fields?: Array<{
|
|
3881
3848
|
id: string;
|
|
@@ -4102,6 +4069,9 @@ export type SaveAttributeMutation = {
|
|
|
4102
4069
|
} | null;
|
|
4103
4070
|
smart_filter?: {
|
|
4104
4071
|
enable: boolean;
|
|
4072
|
+
through?: {
|
|
4073
|
+
id: string;
|
|
4074
|
+
} | null;
|
|
4105
4075
|
} | null;
|
|
4106
4076
|
metadata_fields?: Array<{
|
|
4107
4077
|
id: string;
|
|
@@ -7228,7 +7198,7 @@ export type SaveValueBulkMutationVariables = Exact<{
|
|
|
7228
7198
|
libraryId: Scalars['ID']['input'];
|
|
7229
7199
|
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
7230
7200
|
attributeId: Scalars['ID']['input'];
|
|
7231
|
-
|
|
7201
|
+
mapping: Array<SaveValueBulkMappingInput> | SaveValueBulkMappingInput;
|
|
7232
7202
|
}>;
|
|
7233
7203
|
export type SaveValueBulkMutation = {
|
|
7234
7204
|
saveValueBulk: string;
|
|
@@ -7501,6 +7471,9 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7501
7471
|
} | null;
|
|
7502
7472
|
smart_filter?: {
|
|
7503
7473
|
enable: boolean;
|
|
7474
|
+
through?: {
|
|
7475
|
+
id: string;
|
|
7476
|
+
} | null;
|
|
7504
7477
|
} | null;
|
|
7505
7478
|
permissions: {
|
|
7506
7479
|
access_attribute: boolean;
|
|
@@ -7598,6 +7571,9 @@ export type ExplorerAttributesQuery = {
|
|
|
7598
7571
|
} | null;
|
|
7599
7572
|
smart_filter?: {
|
|
7600
7573
|
enable: boolean;
|
|
7574
|
+
through?: {
|
|
7575
|
+
id: string;
|
|
7576
|
+
} | null;
|
|
7601
7577
|
} | null;
|
|
7602
7578
|
permissions: {
|
|
7603
7579
|
access_attribute: boolean;
|
|
@@ -7666,6 +7642,9 @@ export type ExplorerLinkAttributeQuery = {
|
|
|
7666
7642
|
} | null;
|
|
7667
7643
|
smart_filter?: {
|
|
7668
7644
|
enable: boolean;
|
|
7645
|
+
through?: {
|
|
7646
|
+
id: string;
|
|
7647
|
+
} | null;
|
|
7669
7648
|
} | null;
|
|
7670
7649
|
permissions: {
|
|
7671
7650
|
access_attribute: boolean;
|
|
@@ -9875,7 +9854,7 @@ export type SaveValueBulkMutationFn = Apollo.MutationFunction<SaveValueBulkMutat
|
|
|
9875
9854
|
* libraryId: // value for 'libraryId'
|
|
9876
9855
|
* recordsFilters: // value for 'recordsFilters'
|
|
9877
9856
|
* attributeId: // value for 'attributeId'
|
|
9878
|
-
*
|
|
9857
|
+
* mapping: // value for 'mapping'
|
|
9879
9858
|
* },
|
|
9880
9859
|
* });
|
|
9881
9860
|
*/
|
|
@@ -9883,7 +9862,7 @@ export declare function useSaveValueBulkMutation(baseOptions?: Apollo.MutationHo
|
|
|
9883
9862
|
libraryId: Scalars["ID"]["input"];
|
|
9884
9863
|
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
9885
9864
|
attributeId: Scalars["ID"]["input"];
|
|
9886
|
-
|
|
9865
|
+
mapping: Array<SaveValueBulkMappingInput> | SaveValueBulkMappingInput;
|
|
9887
9866
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
9888
9867
|
export type SaveValueBulkMutationHookResult = ReturnType<typeof useSaveValueBulkMutation>;
|
|
9889
9868
|
export type SaveValueBulkMutationResult = Apollo.MutationResult<SaveValueBulkMutation>;
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -307,12 +307,10 @@ export var TaskStatus;
|
|
|
307
307
|
export var TaskType;
|
|
308
308
|
(function (TaskType) {
|
|
309
309
|
TaskType["EXPORT"] = "EXPORT";
|
|
310
|
-
TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
|
|
311
310
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
312
311
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
313
312
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
314
313
|
TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
|
|
315
|
-
TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
|
|
316
314
|
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
317
315
|
})(TaskType || (TaskType = {}));
|
|
318
316
|
export var TreeBehavior;
|
|
@@ -439,6 +437,9 @@ export const AttributeDetailsFragmentDoc = gql `
|
|
|
439
437
|
reverse_link
|
|
440
438
|
smart_filter {
|
|
441
439
|
enable
|
|
440
|
+
through {
|
|
441
|
+
id
|
|
442
|
+
}
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
445
|
... on TreeAttribute {
|
|
@@ -980,6 +981,9 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
|
|
|
980
981
|
}
|
|
981
982
|
smart_filter {
|
|
982
983
|
enable
|
|
984
|
+
through {
|
|
985
|
+
id
|
|
986
|
+
}
|
|
983
987
|
}
|
|
984
988
|
}
|
|
985
989
|
${RecordIdentityFragmentDoc}`;
|
|
@@ -1065,6 +1069,9 @@ export const LinkAttributeDetailsFragmentDoc = gql `
|
|
|
1065
1069
|
}
|
|
1066
1070
|
smart_filter {
|
|
1067
1071
|
enable
|
|
1072
|
+
through {
|
|
1073
|
+
id
|
|
1074
|
+
}
|
|
1068
1075
|
}
|
|
1069
1076
|
}
|
|
1070
1077
|
`;
|
|
@@ -3196,12 +3203,12 @@ export function useSaveValueBatchMutation(baseOptions) {
|
|
|
3196
3203
|
return Apollo.useMutation(SaveValueBatchDocument, options);
|
|
3197
3204
|
}
|
|
3198
3205
|
export const SaveValueBulkDocument = gql `
|
|
3199
|
-
mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $
|
|
3206
|
+
mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapping: [SaveValueBulkMappingInput!]!) {
|
|
3200
3207
|
saveValueBulk(
|
|
3201
3208
|
libraryId: $libraryId
|
|
3202
3209
|
recordsFilters: $recordsFilters
|
|
3203
3210
|
attributeId: $attributeId
|
|
3204
|
-
|
|
3211
|
+
mapping: $mapping
|
|
3205
3212
|
)
|
|
3206
3213
|
}
|
|
3207
3214
|
`;
|
|
@@ -3221,7 +3228,7 @@ export const SaveValueBulkDocument = gql `
|
|
|
3221
3228
|
* libraryId: // value for 'libraryId'
|
|
3222
3229
|
* recordsFilters: // value for 'recordsFilters'
|
|
3223
3230
|
* attributeId: // value for 'attributeId'
|
|
3224
|
-
*
|
|
3231
|
+
* mapping: // value for 'mapping'
|
|
3225
3232
|
* },
|
|
3226
3233
|
* });
|
|
3227
3234
|
*/
|