@beinformed/ui 2.0.0-beta.0 → 2.0.0-beta.2
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/CHANGELOG.md +13 -0
- package/dist/{Constants-BIbEko1E.d.cts → Constants-CYAEbTZ4.d.cts} +19 -2
- package/dist/{Constants-BIbEko1E.d.ts → Constants-CYAEbTZ4.d.ts} +19 -2
- package/dist/{FormModel-40md7nLX.d.ts → FormModel-Cmzm2g7k.d.ts} +8 -14
- package/dist/{FormModel-CemlQ_MU.d.cts → FormModel-Qa655sE-.d.cts} +8 -14
- package/dist/chunk-24FITWGX.js +2 -0
- package/dist/{chunk-WVQSFYWD.js.map → chunk-24FITWGX.js.map} +1 -1
- package/dist/chunk-4BYHEGUN.js +2 -0
- package/dist/chunk-4BYHEGUN.js.map +1 -0
- package/dist/chunk-GDEYM54A.js +2 -0
- package/dist/chunk-GDEYM54A.js.map +1 -0
- package/dist/chunk-GHQP5QNP.js +33 -0
- package/dist/chunk-GHQP5QNP.js.map +1 -0
- package/dist/chunk-NOB2I3DW.js +2 -0
- package/dist/{chunk-LHZG2ET5.js.map → chunk-NOB2I3DW.js.map} +1 -1
- package/dist/chunk-QIGFPQFN.js +1 -0
- package/dist/chunk-QTZ77JJN.js +2 -0
- package/dist/chunk-QTZ77JJN.js.map +1 -0
- package/dist/chunk-RI2O4J7J.js +2 -0
- package/dist/chunk-RI2O4J7J.js.map +1 -0
- package/dist/chunk-SFI46XCV.js +2 -0
- package/dist/{chunk-LYBG43T6.js.map → chunk-SFI46XCV.js.map} +1 -1
- package/dist/chunk-VLKSMXSB.js +2 -0
- package/dist/chunk-VLKSMXSB.js.map +1 -0
- package/dist/chunk-WHWNPOV6.js +2 -0
- package/dist/chunk-WHWNPOV6.js.map +1 -0
- package/dist/chunk-XWOLLK42.js +2 -0
- package/dist/chunk-XWOLLK42.js.map +1 -0
- package/dist/{chunk-MQBYZKME.js → chunk-Y3XZHSPE.js} +2 -2
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +6 -2
- package/dist/constants/index.d.ts +6 -2
- package/dist/constants/index.js +1 -1
- package/dist/exceptions/index.cjs +1 -1
- package/dist/exceptions/index.cjs.map +1 -1
- package/dist/exceptions/index.d.cts +3 -3
- package/dist/exceptions/index.d.ts +3 -3
- package/dist/exceptions/index.js +1 -1
- package/dist/{index-CgXDAyxM.d.ts → index-BxJE8Lob.d.ts} +202 -115
- package/dist/{index-Ku2WDvSe.d.cts → index-RuAoNZgc.d.cts} +202 -115
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/layouthints/index.cjs +8 -8
- package/dist/layouthints/index.cjs.map +1 -1
- package/dist/layouthints/index.d.cts +2 -2
- package/dist/layouthints/index.d.ts +2 -2
- package/dist/layouthints/index.js +1 -1
- package/dist/models/index.cjs +10 -10
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +53 -76
- package/dist/models/index.d.ts +53 -76
- package/dist/models/index.js +1 -1
- package/dist/modularui/index.cjs +10 -10
- package/dist/modularui/index.cjs.map +1 -1
- package/dist/modularui/index.d.cts +77 -11
- package/dist/modularui/index.d.ts +77 -11
- package/dist/modularui/index.js +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.cts +6 -4
- package/dist/settings/index.d.ts +6 -4
- package/dist/settings/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.cjs +13 -13
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +7 -5
- package/dist/utils/index.d.ts +7 -5
- package/dist/utils/index.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-52QS5IDA.js +0 -1
- package/dist/chunk-77CGPEAQ.js +0 -2
- package/dist/chunk-77CGPEAQ.js.map +0 -1
- package/dist/chunk-BE2T4IDL.js +0 -2
- package/dist/chunk-BE2T4IDL.js.map +0 -1
- package/dist/chunk-BODVDNNA.js +0 -2
- package/dist/chunk-BODVDNNA.js.map +0 -1
- package/dist/chunk-CKI2GSM7.js +0 -2
- package/dist/chunk-CKI2GSM7.js.map +0 -1
- package/dist/chunk-EP2OYSVS.js +0 -2
- package/dist/chunk-EP2OYSVS.js.map +0 -1
- package/dist/chunk-FGEQKEJQ.js +0 -2
- package/dist/chunk-FGEQKEJQ.js.map +0 -1
- package/dist/chunk-LHZG2ET5.js +0 -2
- package/dist/chunk-LYBG43T6.js +0 -2
- package/dist/chunk-SGXACUOV.js +0 -2
- package/dist/chunk-SGXACUOV.js.map +0 -1
- package/dist/chunk-WVQSFYWD.js +0 -2
- package/dist/chunk-YUOGIFZH.js +0 -33
- package/dist/chunk-YUOGIFZH.js.map +0 -1
- /package/dist/{chunk-52QS5IDA.js.map → chunk-QIGFPQFN.js.map} +0 -0
- /package/dist/{chunk-MQBYZKME.js.map → chunk-Y3XZHSPE.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HTTP_METHODS, A as ATTRIBUTE_WIDTH } from './Constants-
|
|
1
|
+
import { P as PARAMETER_TYPES, H as HTTP_METHODS, A as ATTRIBUTE_WIDTH } from './Constants-CYAEbTZ4.cjs';
|
|
2
2
|
import { immerable } from 'immer';
|
|
3
3
|
import * as _date_fns_tz_date from '@date-fns/tz/date';
|
|
4
4
|
import * as date_fns from 'date-fns';
|
|
@@ -237,22 +237,34 @@ interface ListDetailAttributeData extends Data {
|
|
|
237
237
|
givenAnswers?: Record<string, AttributeData>;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
interface
|
|
240
|
+
interface IFilter {
|
|
241
241
|
get type(): string;
|
|
242
|
+
get parameterType(): PARAMETER_TYPES;
|
|
243
|
+
get isMultiple(): boolean;
|
|
244
|
+
context: GroupingContributions | undefined;
|
|
245
|
+
get contextid(): string;
|
|
246
|
+
get contextLabel(): string;
|
|
247
|
+
listkey: string | undefined;
|
|
242
248
|
get label(): string;
|
|
243
|
-
|
|
244
|
-
get isValid(): boolean;
|
|
249
|
+
get key(): string;
|
|
245
250
|
get name(): string | undefined;
|
|
246
|
-
get
|
|
251
|
+
get param(): string;
|
|
247
252
|
get params(): {
|
|
248
253
|
name: string;
|
|
249
254
|
value: MaybeAttributeValue;
|
|
250
255
|
}[];
|
|
251
|
-
|
|
256
|
+
isQuickSearch(): boolean;
|
|
257
|
+
get assistantMessage(): string | undefined;
|
|
258
|
+
get value(): MaybeAttributeValue;
|
|
259
|
+
get inputvalue(): AttributeValue;
|
|
260
|
+
get readonlyvalue(): string | Record<string, string>;
|
|
261
|
+
hasValue(): boolean;
|
|
262
|
+
reset(): IFilter;
|
|
252
263
|
update(attribute: AttributeModel, value: MaybeAttributeValue): void;
|
|
253
264
|
isActive(): boolean;
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
get isValid(): boolean;
|
|
266
|
+
get formdata(): Record<string, MaybeAttributeValue> | null;
|
|
267
|
+
clone(): IFilter;
|
|
256
268
|
}
|
|
257
269
|
interface ContributionsForFilterCollection extends Contributions {
|
|
258
270
|
filter: FilterCollectionContributions;
|
|
@@ -1308,7 +1320,7 @@ declare class LinkCollection extends BaseCollection<LinkModel> {
|
|
|
1308
1320
|
/**
|
|
1309
1321
|
* Get all link Href's in this LinkCollection as an array
|
|
1310
1322
|
*/
|
|
1311
|
-
toHrefArray(): Href<
|
|
1323
|
+
toHrefArray(): Href<HrefState>[];
|
|
1312
1324
|
/**
|
|
1313
1325
|
* Check if link exists in collection
|
|
1314
1326
|
*/
|
|
@@ -1341,14 +1353,6 @@ declare abstract class ResourceModel<D extends ResourceData = ResourceData, C ex
|
|
|
1341
1353
|
* Indicates the type of model
|
|
1342
1354
|
*/
|
|
1343
1355
|
abstract get type(): string;
|
|
1344
|
-
/**
|
|
1345
|
-
* Property to render name of a model, is original name before compilation, transpilation, minification, etc
|
|
1346
|
-
*/
|
|
1347
|
-
static get modelName(): string;
|
|
1348
|
-
/**
|
|
1349
|
-
* Returns true when the model is supported based on configuration found in contributions
|
|
1350
|
-
*/
|
|
1351
|
-
static isApplicableModel(data?: ModularUIResponse): void;
|
|
1352
1356
|
get lastServerUpdate(): number;
|
|
1353
1357
|
set lastServerUpdate(lastServerUpdate: number);
|
|
1354
1358
|
get locale(): string;
|
|
@@ -1370,7 +1374,7 @@ declare abstract class ResourceModel<D extends ResourceData = ResourceData, C ex
|
|
|
1370
1374
|
/**
|
|
1371
1375
|
* Return the href of the self link of this resource
|
|
1372
1376
|
*/
|
|
1373
|
-
get selfhref(): Href<
|
|
1377
|
+
get selfhref(): Href<HrefState>;
|
|
1374
1378
|
/**
|
|
1375
1379
|
* Add links to expand on initialization of this model
|
|
1376
1380
|
*/
|
|
@@ -1391,7 +1395,7 @@ declare abstract class ResourceModel<D extends ResourceData = ResourceData, C ex
|
|
|
1391
1395
|
setChildModels(models: ModelWithChildModels[], errors: ErrorResponse[]): void;
|
|
1392
1396
|
}
|
|
1393
1397
|
|
|
1394
|
-
type TargetModel<D extends ResourceData = ResourceData, C extends Contributions = Contributions> = new (modularuiResponse
|
|
1398
|
+
type TargetModel<D extends ResourceData = ResourceData, C extends Contributions = Contributions> = new (modularuiResponse: ModularUIResponse) => ResourceModel<D, C>;
|
|
1395
1399
|
interface ModularUISpecificErrorResponse {
|
|
1396
1400
|
properties?: {
|
|
1397
1401
|
message: string;
|
|
@@ -1403,6 +1407,11 @@ interface AuthenticationType {
|
|
|
1403
1407
|
redirectUri?: string;
|
|
1404
1408
|
isPrimary: boolean;
|
|
1405
1409
|
}
|
|
1410
|
+
interface ModelConfig {
|
|
1411
|
+
name: string;
|
|
1412
|
+
isMatch: (response: ModularUIResponse) => boolean;
|
|
1413
|
+
Model: TargetModel;
|
|
1414
|
+
}
|
|
1406
1415
|
|
|
1407
1416
|
interface LinkData {
|
|
1408
1417
|
href: string;
|
|
@@ -1473,7 +1482,7 @@ declare class ContentLinkModel extends BaseModel<ContentLinkData> implements Mod
|
|
|
1473
1482
|
* Encode the content-identifier of the path to the content resource.
|
|
1474
1483
|
* This makes it a single uri part, which can be used on routes to make nested routes
|
|
1475
1484
|
*/
|
|
1476
|
-
get encodedHref(): Href<
|
|
1485
|
+
get encodedHref(): Href<HrefState>;
|
|
1477
1486
|
/**
|
|
1478
1487
|
* Getting the links of the resource
|
|
1479
1488
|
*/
|
|
@@ -1487,13 +1496,13 @@ declare class ContentLinkModel extends BaseModel<ContentLinkData> implements Mod
|
|
|
1487
1496
|
/**
|
|
1488
1497
|
* Self href of concept
|
|
1489
1498
|
*/
|
|
1490
|
-
get selfhref(): Href<
|
|
1499
|
+
get selfhref(): Href<HrefState>;
|
|
1491
1500
|
get subSectionID(): string;
|
|
1492
1501
|
get contentTypeLink(): LinkModel | undefined;
|
|
1493
1502
|
/**
|
|
1494
1503
|
* Concept type href of concept
|
|
1495
1504
|
*/
|
|
1496
|
-
get contentTypeHref(): Href<
|
|
1505
|
+
get contentTypeHref(): Href<HrefState> | undefined;
|
|
1497
1506
|
get fragment(): SectionFragment | undefined;
|
|
1498
1507
|
/**
|
|
1499
1508
|
* Children of link model in TOC
|
|
@@ -1542,13 +1551,13 @@ declare class SubSectionModel extends BaseModel<SubSectionData> {
|
|
|
1542
1551
|
/**
|
|
1543
1552
|
* Return default self link of resource
|
|
1544
1553
|
*/
|
|
1545
|
-
get selfhref(): Href<
|
|
1554
|
+
get selfhref(): Href<HrefState> | undefined;
|
|
1546
1555
|
get entryDate(): string | undefined;
|
|
1547
|
-
get relatedConceptsHrefs(): Href<
|
|
1556
|
+
get relatedConceptsHrefs(): Href<HrefState>[];
|
|
1548
1557
|
/**
|
|
1549
1558
|
* Get related concepts link
|
|
1550
1559
|
*/
|
|
1551
|
-
get relatedConceptsHref(): Href<
|
|
1560
|
+
get relatedConceptsHref(): Href<HrefState> | undefined;
|
|
1552
1561
|
get referenceHash(): number;
|
|
1553
1562
|
getReferredSections(): SubSectionModel[];
|
|
1554
1563
|
}
|
|
@@ -1561,7 +1570,7 @@ declare class SectionModel extends BaseModel<SectionData> {
|
|
|
1561
1570
|
get referred(): boolean;
|
|
1562
1571
|
get selflink(): LinkModel | undefined;
|
|
1563
1572
|
createSelfLink(): LinkModel | undefined;
|
|
1564
|
-
get selfhref(): Href<
|
|
1573
|
+
get selfhref(): Href<HrefState> | undefined;
|
|
1565
1574
|
get entryDate(): string | undefined;
|
|
1566
1575
|
get type(): string | undefined;
|
|
1567
1576
|
get sourceLabel(): string | undefined;
|
|
@@ -1701,8 +1710,6 @@ declare class AttributeContent {
|
|
|
1701
1710
|
*/
|
|
1702
1711
|
declare class ConceptTypeDetailModel extends ResourceModel<ConceptTypeDetailData> {
|
|
1703
1712
|
get type(): string;
|
|
1704
|
-
static get modelName(): string;
|
|
1705
|
-
static isApplicableModel(data: ModularUIResponse): boolean;
|
|
1706
1713
|
get key(): string;
|
|
1707
1714
|
/**
|
|
1708
1715
|
* Get concept type label
|
|
@@ -1779,12 +1786,12 @@ declare class ConceptLinkModel extends BaseModel<ConceptLinkData> implements Mod
|
|
|
1779
1786
|
/**
|
|
1780
1787
|
* Self href of concept
|
|
1781
1788
|
*/
|
|
1782
|
-
get selfhref(): Href<
|
|
1789
|
+
get selfhref(): Href<HrefState> | undefined;
|
|
1783
1790
|
get conceptTypeLink(): LinkModel | undefined;
|
|
1784
1791
|
/**
|
|
1785
1792
|
* Concept type href of concept
|
|
1786
1793
|
*/
|
|
1787
|
-
get concepttypeHref(): Href<
|
|
1794
|
+
get concepttypeHref(): Href<HrefState> | null;
|
|
1788
1795
|
get taxonomyType(): string;
|
|
1789
1796
|
get modelCategory(): string | undefined;
|
|
1790
1797
|
get sectionId(): string | undefined;
|
|
@@ -1856,22 +1863,24 @@ declare class ConceptRelationCollection extends ResourceCollection<ConceptRelati
|
|
|
1856
1863
|
declare class SourceReferenceModel extends BaseModel<SourceReferenceData> {
|
|
1857
1864
|
private _entryDate;
|
|
1858
1865
|
private _links;
|
|
1859
|
-
constructor(sourceReference?: SourceReferenceData, entryDate?: ISO_DATE);
|
|
1866
|
+
constructor(sourceReference?: SourceReferenceData, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
1860
1867
|
get links(): LinkCollection;
|
|
1861
1868
|
get link(): ContentLinkModel | undefined;
|
|
1862
1869
|
get selflink(): LinkModel | undefined;
|
|
1863
|
-
get selfhref(): Href<
|
|
1870
|
+
get selfhref(): Href<HrefState> | undefined;
|
|
1864
1871
|
get type(): string;
|
|
1872
|
+
get typeLabel(): string;
|
|
1865
1873
|
get label(): string | undefined;
|
|
1866
1874
|
get sourceLabel(): string | undefined;
|
|
1867
1875
|
get sourceAbbreviation(): string | undefined;
|
|
1868
1876
|
get referenceHash(): number | undefined;
|
|
1877
|
+
get number(): string | undefined;
|
|
1869
1878
|
get sectionId(): string | undefined;
|
|
1870
1879
|
get fragment(): SectionFragment;
|
|
1871
1880
|
}
|
|
1872
1881
|
|
|
1873
1882
|
declare class SourceReferenceCollection extends BaseCollection<SourceReferenceModel> {
|
|
1874
|
-
constructor(
|
|
1883
|
+
constructor(sourceReferences?: SourceReferenceData[], sectionReferenceTypes?: SectionReferenceType[], entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
1875
1884
|
private createSourceReferences;
|
|
1876
1885
|
byTypes(types: string): SourceReferenceModel[];
|
|
1877
1886
|
}
|
|
@@ -1885,8 +1894,6 @@ declare class ConceptDetailModel extends ResourceModel<ConceptDetailData> {
|
|
|
1885
1894
|
private _sourceReferences;
|
|
1886
1895
|
constructor(modularuiResponse: ModularUIResponse);
|
|
1887
1896
|
get type(): string;
|
|
1888
|
-
static get modelName(): string;
|
|
1889
|
-
static isApplicableModel(data: ModularUIResponse): boolean;
|
|
1890
1897
|
getInitialChildModelLinks(): LinkModel[];
|
|
1891
1898
|
setChildModels(models: ModelWithChildModels[], errors: ErrorResponse[]): void;
|
|
1892
1899
|
/**
|
|
@@ -1896,7 +1903,7 @@ declare class ConceptDetailModel extends ResourceModel<ConceptDetailData> {
|
|
|
1896
1903
|
/**
|
|
1897
1904
|
* Getting the self link of this Concept
|
|
1898
1905
|
*/
|
|
1899
|
-
get selfhref(): Href<
|
|
1906
|
+
get selfhref(): Href<HrefState>;
|
|
1900
1907
|
/**
|
|
1901
1908
|
* Available diagrams for the concept, most of the time just one
|
|
1902
1909
|
*/
|
|
@@ -2607,13 +2614,16 @@ declare abstract class BaseAttributeModel<C extends BaseAttributeContributions =
|
|
|
2607
2614
|
equals(otherAttribute: AttributeModel): boolean;
|
|
2608
2615
|
}
|
|
2609
2616
|
|
|
2610
|
-
declare class BaseFilterModel<
|
|
2611
|
-
private _attribute;
|
|
2617
|
+
declare abstract class BaseFilterModel<D extends FilterData = FilterData, C extends FilterContribution = FilterContribution> extends BaseModel<D, C> {
|
|
2612
2618
|
private _context;
|
|
2613
2619
|
private _listKey;
|
|
2614
2620
|
constructor(data?: D, contributions?: C, modelOptions?: ModelOptions);
|
|
2615
|
-
get
|
|
2621
|
+
get key(): string;
|
|
2616
2622
|
get type(): FILTER_TYPE;
|
|
2623
|
+
/**
|
|
2624
|
+
* Returns the parameter type, when the filter can only be used in a POST request the type is 'bodyParameter', else 'queryParameter'.
|
|
2625
|
+
*/
|
|
2626
|
+
get parameterType(): PARAMETER_TYPES;
|
|
2617
2627
|
/**
|
|
2618
2628
|
* Getting the name of the filter
|
|
2619
2629
|
*/
|
|
@@ -2632,6 +2642,7 @@ declare class BaseFilterModel<A extends AttributeModel = AttributeModel, D exten
|
|
|
2632
2642
|
*/
|
|
2633
2643
|
set context(context: GroupingContributions | undefined);
|
|
2634
2644
|
setContext(context: GroupingContributions): void;
|
|
2645
|
+
get contextid(): string;
|
|
2635
2646
|
/**
|
|
2636
2647
|
* Getting the context label
|
|
2637
2648
|
*/
|
|
@@ -2648,45 +2659,10 @@ declare class BaseFilterModel<A extends AttributeModel = AttributeModel, D exten
|
|
|
2648
2659
|
* Getting the label of the filter
|
|
2649
2660
|
*/
|
|
2650
2661
|
get label(): string;
|
|
2651
|
-
/**
|
|
2652
|
-
* Retrieve the parameters with it's value for this filter
|
|
2653
|
-
*/
|
|
2654
|
-
get params(): {
|
|
2655
|
-
name: string;
|
|
2656
|
-
value: MaybeAttributeValue;
|
|
2657
|
-
}[];
|
|
2658
|
-
/**
|
|
2659
|
-
* Getting the value of the filter
|
|
2660
|
-
*/
|
|
2661
|
-
get value(): MaybeAttributeValue;
|
|
2662
|
-
/**
|
|
2663
|
-
* Getting the inputvalue of the filter
|
|
2664
|
-
*/
|
|
2665
|
-
get inputvalue(): AttributeValue;
|
|
2666
|
-
private getAttributeType;
|
|
2667
|
-
private getChildType;
|
|
2668
|
-
createAttribute<AD extends FilterData = D, AC extends FilterContribution = C>(type: FILTER_TYPE, param: string, data: AD, contributions: AC): A | undefined;
|
|
2669
|
-
/**
|
|
2670
|
-
* Reset the value of this filter to undefined
|
|
2671
|
-
*/
|
|
2672
|
-
reset(): this;
|
|
2673
|
-
/**
|
|
2674
|
-
* Update this filter with input name and value
|
|
2675
|
-
*/
|
|
2676
|
-
update(_attribute: AttributeModel | undefined, value: MaybeAttributeValue): void;
|
|
2677
2662
|
/**
|
|
2678
2663
|
* Inidicates if filter is a quick search filter
|
|
2679
2664
|
*/
|
|
2680
2665
|
isQuickSearch(): boolean;
|
|
2681
|
-
/**
|
|
2682
|
-
* Inidiates if filter is active
|
|
2683
|
-
*/
|
|
2684
|
-
isActive(): boolean;
|
|
2685
|
-
/**
|
|
2686
|
-
* Inidiates if filter is valid
|
|
2687
|
-
*/
|
|
2688
|
-
get isValid(): boolean;
|
|
2689
|
-
get readonlyvalue(): string;
|
|
2690
2666
|
/**
|
|
2691
2667
|
* Get assistant message
|
|
2692
2668
|
*/
|
|
@@ -2696,20 +2672,18 @@ declare class BaseFilterModel<A extends AttributeModel = AttributeModel, D exten
|
|
|
2696
2672
|
/**
|
|
2697
2673
|
* Assignment filter consists of two filters: assignment type and user filter
|
|
2698
2674
|
*/
|
|
2699
|
-
declare class AssignmentFilterModel extends BaseFilterModel<
|
|
2675
|
+
declare class AssignmentFilterModel extends BaseFilterModel<AssignmentFilterData, AssignmentFilterContribution> implements IFilter {
|
|
2700
2676
|
private _assignmenttype;
|
|
2701
2677
|
private _user;
|
|
2702
2678
|
constructor(data?: AssignmentFilterData, contributions?: AssignmentFilterContribution, modelOptions?: ModelOptions);
|
|
2703
|
-
get key(): string;
|
|
2704
|
-
get contextid(): string;
|
|
2705
2679
|
/**
|
|
2706
2680
|
* Creates an assignmenttype model when assignmenttype json is present
|
|
2707
2681
|
*/
|
|
2708
|
-
createAssignmentTypeModel():
|
|
2682
|
+
createAssignmentTypeModel(): ChoiceAttributeModel<ChoiceAttributeContributions>;
|
|
2709
2683
|
/**
|
|
2710
2684
|
* Creates an assignmenttype model when userkey json is present
|
|
2711
2685
|
*/
|
|
2712
|
-
createUserModel():
|
|
2686
|
+
createUserModel(): ChoiceAttributeModel<ChoiceAttributeContributions>;
|
|
2713
2687
|
/**
|
|
2714
2688
|
* The assignment filter consists of two part. This method return the assignment type attribute
|
|
2715
2689
|
*/
|
|
@@ -2725,10 +2699,20 @@ declare class AssignmentFilterModel extends BaseFilterModel<AttributeModel, Assi
|
|
|
2725
2699
|
name: string;
|
|
2726
2700
|
value: string;
|
|
2727
2701
|
}[];
|
|
2702
|
+
get value(): {
|
|
2703
|
+
[x: string]: MaybeAttributeValue;
|
|
2704
|
+
};
|
|
2705
|
+
get inputvalue(): {
|
|
2706
|
+
[x: string]: MaybeAttributeValue;
|
|
2707
|
+
};
|
|
2708
|
+
/**
|
|
2709
|
+
* Indicates if the filter has a value.
|
|
2710
|
+
*/
|
|
2711
|
+
hasValue(): boolean;
|
|
2728
2712
|
/**
|
|
2729
2713
|
* Reset the values within the filter
|
|
2730
2714
|
*/
|
|
2731
|
-
reset():
|
|
2715
|
+
reset(): IFilter;
|
|
2732
2716
|
/**
|
|
2733
2717
|
* Update this filter
|
|
2734
2718
|
*/
|
|
@@ -2741,6 +2725,12 @@ declare class AssignmentFilterModel extends BaseFilterModel<AttributeModel, Assi
|
|
|
2741
2725
|
* Inidiates if filter is valid
|
|
2742
2726
|
*/
|
|
2743
2727
|
get isValid(): boolean;
|
|
2728
|
+
get readonlyvalue(): {
|
|
2729
|
+
[x: string]: string;
|
|
2730
|
+
};
|
|
2731
|
+
get formdata(): {
|
|
2732
|
+
[x: string]: MaybeAttributeValue;
|
|
2733
|
+
};
|
|
2744
2734
|
}
|
|
2745
2735
|
|
|
2746
2736
|
declare class DateTimeDateFormatConstraint implements ConstraintModel {
|
|
@@ -3107,10 +3097,58 @@ declare class RangeAttributeModel<C extends RangeAttributeContributions = RangeA
|
|
|
3107
3097
|
private setChildrenOptionality;
|
|
3108
3098
|
}
|
|
3109
3099
|
|
|
3100
|
+
declare class FilterModel<A extends AttributeModel = AttributeModel, D extends FilterData = FilterData, C extends FilterContribution = FilterContribution> extends BaseFilterModel<D, C> implements IFilter {
|
|
3101
|
+
private _attribute;
|
|
3102
|
+
constructor(data?: D, contributions?: C, modelOptions?: ModelOptions);
|
|
3103
|
+
get attribute(): A | undefined;
|
|
3104
|
+
/**
|
|
3105
|
+
* Retrieve the parameters with it's value for this filter
|
|
3106
|
+
*/
|
|
3107
|
+
get params(): {
|
|
3108
|
+
name: string;
|
|
3109
|
+
value: MaybeAttributeValue;
|
|
3110
|
+
}[];
|
|
3111
|
+
/**
|
|
3112
|
+
* Getting the value of the filter
|
|
3113
|
+
*/
|
|
3114
|
+
get value(): MaybeAttributeValue;
|
|
3115
|
+
/**
|
|
3116
|
+
* Getting the inputvalue of the filter
|
|
3117
|
+
*/
|
|
3118
|
+
get inputvalue(): AttributeValue;
|
|
3119
|
+
/**
|
|
3120
|
+
* Indicates if the filter has a value.
|
|
3121
|
+
*/
|
|
3122
|
+
hasValue(): boolean;
|
|
3123
|
+
private getAttributeType;
|
|
3124
|
+
private getChildType;
|
|
3125
|
+
createAttribute<AD extends FilterData = D, AC extends FilterContribution = C>(type: FILTER_TYPE, param: string, data: AD, contributions: AC): A | undefined;
|
|
3126
|
+
/**
|
|
3127
|
+
* Reset the value of this filter to undefined
|
|
3128
|
+
*/
|
|
3129
|
+
reset(): IFilter;
|
|
3130
|
+
/**
|
|
3131
|
+
* Update this filter with input name and value
|
|
3132
|
+
*/
|
|
3133
|
+
update(_attribute: AttributeModel | undefined, value: MaybeAttributeValue): void;
|
|
3134
|
+
/**
|
|
3135
|
+
* Inidiates if filter is active
|
|
3136
|
+
*/
|
|
3137
|
+
isActive(): boolean;
|
|
3138
|
+
/**
|
|
3139
|
+
* Inidiates if filter is valid
|
|
3140
|
+
*/
|
|
3141
|
+
get isValid(): boolean;
|
|
3142
|
+
get readonlyvalue(): string;
|
|
3143
|
+
get formdata(): {
|
|
3144
|
+
[x: string]: MaybeAttributeValue;
|
|
3145
|
+
} | null;
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3110
3148
|
/**
|
|
3111
3149
|
* Range filter, for instance a date range filter or a number range filter
|
|
3112
3150
|
*/
|
|
3113
|
-
declare class RangeFilterModel extends
|
|
3151
|
+
declare class RangeFilterModel extends FilterModel<RangeAttributeModel> implements IFilter {
|
|
3114
3152
|
update(attribute: AttributeModel | undefined, value: string): void;
|
|
3115
3153
|
get params(): {
|
|
3116
3154
|
name: string;
|
|
@@ -3121,7 +3159,7 @@ declare class RangeFilterModel extends BaseFilterModel<RangeAttributeModel> {
|
|
|
3121
3159
|
/**
|
|
3122
3160
|
* Contains a collection of filters
|
|
3123
3161
|
*/
|
|
3124
|
-
declare class FilterCollection extends BaseCollection<
|
|
3162
|
+
declare class FilterCollection extends BaseCollection<IFilter> {
|
|
3125
3163
|
constructor(data?: FilterCollectionData, contributions?: ContributionsForFilterCollection, modelOptions?: ModelOptions);
|
|
3126
3164
|
private createCollection;
|
|
3127
3165
|
/**
|
|
@@ -3136,10 +3174,11 @@ declare class FilterCollection extends BaseCollection<FilterModel> {
|
|
|
3136
3174
|
* Check if assignment filter attribute matches key
|
|
3137
3175
|
*/
|
|
3138
3176
|
checkAssignmentFilterByAttributeKey(filter: AssignmentFilterModel, key: string): boolean;
|
|
3177
|
+
getFilterByName(name: string): IFilter | null;
|
|
3139
3178
|
/**
|
|
3140
3179
|
* Getting the filter by name
|
|
3141
3180
|
*/
|
|
3142
|
-
getFilterByAttributeKey(key: string):
|
|
3181
|
+
getFilterByAttributeKey(key: string): IFilter | undefined;
|
|
3143
3182
|
/**
|
|
3144
3183
|
* Update Filter by input name and value
|
|
3145
3184
|
*/
|
|
@@ -3152,6 +3191,11 @@ declare class FilterCollection extends BaseCollection<FilterModel> {
|
|
|
3152
3191
|
* Indicates if an active filter is present in the collection
|
|
3153
3192
|
*/
|
|
3154
3193
|
hasActiveFilters(): boolean;
|
|
3194
|
+
/**
|
|
3195
|
+
* Retrieve all filters with a value
|
|
3196
|
+
*/
|
|
3197
|
+
getActiveFilters(): IFilter[];
|
|
3198
|
+
get formdata(): {} | null;
|
|
3155
3199
|
}
|
|
3156
3200
|
|
|
3157
3201
|
/**
|
|
@@ -3165,8 +3209,6 @@ declare class DetailModel<D extends DetailData = DetailData, C extends BaseDetai
|
|
|
3165
3209
|
private _actionCollection;
|
|
3166
3210
|
constructor(modularuiResponse?: ModularUIResponse);
|
|
3167
3211
|
get type(): string;
|
|
3168
|
-
static get modelName(): string;
|
|
3169
|
-
static isApplicableModel(data: ModularUIResponse): boolean;
|
|
3170
3212
|
getInitialChildModelLinks(): LinkModel[];
|
|
3171
3213
|
setChildModels(models: ModelWithChildModels[], errors: ErrorResponse[]): void;
|
|
3172
3214
|
/**
|
|
@@ -3285,7 +3327,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel implements ModelWithC
|
|
|
3285
3327
|
*/
|
|
3286
3328
|
get links(): LinkCollection;
|
|
3287
3329
|
set links(links: LinkCollection);
|
|
3288
|
-
get selfhref(): Href<
|
|
3330
|
+
get selfhref(): Href<HrefState> | undefined;
|
|
3289
3331
|
/**
|
|
3290
3332
|
* referenceDate received from attribute
|
|
3291
3333
|
*/
|
|
@@ -3322,8 +3364,8 @@ declare class ChoiceAttributeOptionModel extends BaseModel implements ModelWithC
|
|
|
3322
3364
|
declare class ListItemModel extends DetailModel<DetailData, BaseDetailContributions> {
|
|
3323
3365
|
static createFromListResult(key: string, data: DetailData, contributions: BaseDetailContributions, modelOptions?: ModelOptions): ListItemModel;
|
|
3324
3366
|
static createFromChoiceAttributeOption(option: ChoiceAttributeOptionModel): ListItemModel;
|
|
3325
|
-
get selfhref(): Href<
|
|
3326
|
-
get caseviewHref(): Href<
|
|
3367
|
+
get selfhref(): Href<HrefState>;
|
|
3368
|
+
get caseviewHref(): Href<HrefState>;
|
|
3327
3369
|
/**
|
|
3328
3370
|
* Getting panel links
|
|
3329
3371
|
*/
|
|
@@ -3473,8 +3515,6 @@ declare class ListDetailModel extends DetailModel<ListDetailData, ListDetailCont
|
|
|
3473
3515
|
getInitialChildModelLinks(): LinkModel[];
|
|
3474
3516
|
setChildModels(models: ModelWithChildModels[], errors: ErrorResponse[]): void;
|
|
3475
3517
|
get type(): string;
|
|
3476
|
-
static get modelName(): string;
|
|
3477
|
-
static isApplicableModel(data: ModularUIResponse): boolean;
|
|
3478
3518
|
/**
|
|
3479
3519
|
* Set listitem of this listdetail and transfer listitem actions to listdetail actions
|
|
3480
3520
|
*/
|
|
@@ -3594,6 +3634,7 @@ declare class PagesizeModel {
|
|
|
3594
3634
|
* Getting available pagesize options
|
|
3595
3635
|
*/
|
|
3596
3636
|
get options(): number[];
|
|
3637
|
+
get querystring(): string;
|
|
3597
3638
|
}
|
|
3598
3639
|
|
|
3599
3640
|
declare class PagingModel {
|
|
@@ -3626,6 +3667,7 @@ declare class PagingModel {
|
|
|
3626
3667
|
*/
|
|
3627
3668
|
get totalResults(): number;
|
|
3628
3669
|
get pagesize(): PagesizeModel;
|
|
3670
|
+
get querystring(): string;
|
|
3629
3671
|
}
|
|
3630
3672
|
|
|
3631
3673
|
declare class ListModel extends ResourceModel<ListData, ListContributions> {
|
|
@@ -3637,17 +3679,21 @@ declare class ListModel extends ResourceModel<ListData, ListContributions> {
|
|
|
3637
3679
|
private _actionCollection;
|
|
3638
3680
|
private _listItemCollection;
|
|
3639
3681
|
private _grouping;
|
|
3640
|
-
private
|
|
3682
|
+
private _lookupToken;
|
|
3641
3683
|
constructor(modularuiResponse: ModularUIResponse);
|
|
3642
3684
|
get type(): string;
|
|
3643
|
-
static get modelName(): string;
|
|
3644
|
-
static isApplicableModel(data: ModularUIResponse): boolean;
|
|
3645
3685
|
getInitialChildModelLinks(): LinkModel[];
|
|
3646
3686
|
setChildModels(models: ModelWithChildModels[], _errors: ErrorResponse[]): void;
|
|
3687
|
+
get requestMethod(): HTTP_METHODS;
|
|
3647
3688
|
/**
|
|
3648
3689
|
* Getting the label of the list
|
|
3649
3690
|
*/
|
|
3650
3691
|
get label(): string;
|
|
3692
|
+
/**
|
|
3693
|
+
* In case of a lookup list, the token being used to request the list
|
|
3694
|
+
*/
|
|
3695
|
+
get lookupToken(): MaybeAttributeValue;
|
|
3696
|
+
set lookupToken(lookupToken: MaybeAttributeValue);
|
|
3651
3697
|
/**
|
|
3652
3698
|
* Getting the introduction text
|
|
3653
3699
|
*/
|
|
@@ -3705,7 +3751,7 @@ declare class ListModel extends ResourceModel<ListData, ListContributions> {
|
|
|
3705
3751
|
/**
|
|
3706
3752
|
* Set filterCollection
|
|
3707
3753
|
*/
|
|
3708
|
-
set filterCollection(filterCollection: FilterCollection);
|
|
3754
|
+
set filterCollection(filterCollection: FilterCollection | IFilter[]);
|
|
3709
3755
|
setFilters(): FilterCollection;
|
|
3710
3756
|
/**
|
|
3711
3757
|
* Indicates if list results are filtered
|
|
@@ -3721,9 +3767,10 @@ declare class ListModel extends ResourceModel<ListData, ListContributions> {
|
|
|
3721
3767
|
*/
|
|
3722
3768
|
hasList(): boolean;
|
|
3723
3769
|
/**
|
|
3724
|
-
*
|
|
3770
|
+
* Self href from links collection
|
|
3725
3771
|
*/
|
|
3726
|
-
|
|
3772
|
+
getSelfHref(): ListHref;
|
|
3773
|
+
setLookupToken(): MaybeAttributeValue;
|
|
3727
3774
|
/**
|
|
3728
3775
|
* Getting the self link of this list
|
|
3729
3776
|
*/
|
|
@@ -3745,6 +3792,7 @@ declare class ListModel extends ResourceModel<ListData, ListContributions> {
|
|
|
3745
3792
|
* Retrieves the label of the first additional detail link by resource type
|
|
3746
3793
|
*/
|
|
3747
3794
|
getAdditionalDetailLabel(resourceType: string): string | undefined;
|
|
3795
|
+
get formdata(): string | null;
|
|
3748
3796
|
}
|
|
3749
3797
|
|
|
3750
3798
|
/**
|
|
@@ -3756,6 +3804,7 @@ declare class ListHref extends Href {
|
|
|
3756
3804
|
private _pagingName;
|
|
3757
3805
|
private _pagesizeName;
|
|
3758
3806
|
private _sortingName;
|
|
3807
|
+
private _lookupToken;
|
|
3759
3808
|
constructor(href?: Href | string | HistoryLocation, list?: ListModel, isPrefixed?: boolean);
|
|
3760
3809
|
/**
|
|
3761
3810
|
* Retrieve parameter names from Href
|
|
@@ -3764,7 +3813,7 @@ declare class ListHref extends Href {
|
|
|
3764
3813
|
/**
|
|
3765
3814
|
* Retrieve parameter names and settings from List model
|
|
3766
3815
|
*/
|
|
3767
|
-
|
|
3816
|
+
setParametersFromListModel(list: ListModel): void;
|
|
3768
3817
|
/**
|
|
3769
3818
|
* Getting prefix
|
|
3770
3819
|
*/
|
|
@@ -3794,6 +3843,10 @@ declare class ListHref extends Href {
|
|
|
3794
3843
|
* Setting the page size
|
|
3795
3844
|
*/
|
|
3796
3845
|
set pagesize(pagesize: number | undefined);
|
|
3846
|
+
/**
|
|
3847
|
+
* Set the lookup token
|
|
3848
|
+
*/
|
|
3849
|
+
set lookupToken(token: MaybeAttributeValue);
|
|
3797
3850
|
/**
|
|
3798
3851
|
* Add filter parameters to the parameter collection
|
|
3799
3852
|
*/
|
|
@@ -3813,6 +3866,7 @@ declare class SortOptionModel {
|
|
|
3813
3866
|
private _selected;
|
|
3814
3867
|
constructor(key: string, label?: string, group?: GroupModel);
|
|
3815
3868
|
private setLabel;
|
|
3869
|
+
reset(): void;
|
|
3816
3870
|
get selected(): boolean;
|
|
3817
3871
|
set selected(selected: boolean);
|
|
3818
3872
|
get key(): string;
|
|
@@ -3830,9 +3884,11 @@ declare class SortingModel extends BaseCollection<SortOptionModel> {
|
|
|
3830
3884
|
constructor(contributions: ListContributions, labels: Record<string, string>, grouping: GroupingModel, currentSort: string | undefined);
|
|
3831
3885
|
get name(): string;
|
|
3832
3886
|
get value(): string;
|
|
3887
|
+
set value(value: string);
|
|
3833
3888
|
get param(): string;
|
|
3834
3889
|
get options(): SortOptionModel[];
|
|
3835
|
-
|
|
3890
|
+
reset(): void;
|
|
3891
|
+
setSelected(value?: string): void;
|
|
3836
3892
|
/**
|
|
3837
3893
|
* Retrieve a sort option from the model that can be used in the querystring to set it in the opposite direction
|
|
3838
3894
|
* For example a sort option in the model with key books and direction descending will be retrieved as 'Books asc'
|
|
@@ -3969,6 +4025,10 @@ declare class ChoiceAttributeModel<C extends ChoiceAttributeContributions = Choi
|
|
|
3969
4025
|
* Retrieve lookup service link
|
|
3970
4026
|
*/
|
|
3971
4027
|
get lookupLink(): LinkModel | undefined;
|
|
4028
|
+
/**
|
|
4029
|
+
* Indicate if the lookup must be done with POST or GET
|
|
4030
|
+
*/
|
|
4031
|
+
get lookupParameterType(): PARAMETER_TYPES;
|
|
3972
4032
|
/**
|
|
3973
4033
|
* Retrieve lookup service as list link
|
|
3974
4034
|
*/
|
|
@@ -4431,8 +4491,9 @@ declare class ProcessStatusSettingsModel extends BaseModel<ProcessStatusSettings
|
|
|
4431
4491
|
declare class LinkModel extends BaseModel<NormalizedLinkData, NormalizedLinkContributions> {
|
|
4432
4492
|
private _href;
|
|
4433
4493
|
private _icon?;
|
|
4434
|
-
private _targetModel
|
|
4494
|
+
private _targetModel;
|
|
4435
4495
|
private _isCacheable;
|
|
4496
|
+
private _method;
|
|
4436
4497
|
constructor(data?: NormalizedLinkData, contributions?: NormalizedLinkContributions, modelOptions?: ModelOptions);
|
|
4437
4498
|
static create(name: string, href: string | Href, label: string, modelOptions?: ModelOptions): LinkModel;
|
|
4438
4499
|
private createHref;
|
|
@@ -4459,6 +4520,14 @@ declare class LinkModel extends BaseModel<NormalizedLinkData, NormalizedLinkCont
|
|
|
4459
4520
|
get group(): string;
|
|
4460
4521
|
get href(): Href;
|
|
4461
4522
|
set href(href: Href);
|
|
4523
|
+
/**
|
|
4524
|
+
* Indicate how this link must be called, GET by default
|
|
4525
|
+
*/
|
|
4526
|
+
get method(): HTTP_METHODS;
|
|
4527
|
+
/**
|
|
4528
|
+
* Set http method for this link
|
|
4529
|
+
*/
|
|
4530
|
+
set method(method: HTTP_METHODS);
|
|
4462
4531
|
/**
|
|
4463
4532
|
* retrieve sublinks of this link
|
|
4464
4533
|
*/
|
|
@@ -4802,8 +4871,8 @@ declare class Parameter {
|
|
|
4802
4871
|
* Getting value
|
|
4803
4872
|
*/
|
|
4804
4873
|
get value(): MaybeAttributeValue;
|
|
4805
|
-
static fromString(parameter: string): Parameter;
|
|
4806
|
-
static fromURLSearchParam(key: string, value: string): Parameter;
|
|
4874
|
+
static fromString(parameter: string): Parameter | null;
|
|
4875
|
+
static fromURLSearchParam(key: string, value: string): Parameter | null;
|
|
4807
4876
|
/**
|
|
4808
4877
|
* Convert parameter to string
|
|
4809
4878
|
*/
|
|
@@ -4817,7 +4886,7 @@ declare class Parameter {
|
|
|
4817
4886
|
setIsModUIParameter(name: string): void;
|
|
4818
4887
|
}
|
|
4819
4888
|
|
|
4820
|
-
declare class Href<S =
|
|
4889
|
+
declare class Href<S extends HrefState = HrefState> {
|
|
4821
4890
|
[immerable]: boolean;
|
|
4822
4891
|
private _origin;
|
|
4823
4892
|
private _contextPath;
|
|
@@ -4849,7 +4918,9 @@ declare class Href<S = unknown> {
|
|
|
4849
4918
|
set hash(hash: string);
|
|
4850
4919
|
get state(): S | undefined;
|
|
4851
4920
|
set state(state: S | undefined);
|
|
4852
|
-
setState(state: S):
|
|
4921
|
+
setState(state: S): this;
|
|
4922
|
+
set formdata(formdata: string | undefined | null);
|
|
4923
|
+
get formdata(): string | undefined | null;
|
|
4853
4924
|
/**
|
|
4854
4925
|
* Get request method
|
|
4855
4926
|
*/
|
|
@@ -4871,16 +4942,20 @@ declare class Href<S = unknown> {
|
|
|
4871
4942
|
* Check if url is relative (not checking for absolute urls with same domain)
|
|
4872
4943
|
*/
|
|
4873
4944
|
get isExternal(): boolean;
|
|
4945
|
+
/**
|
|
4946
|
+
* Add a parameter for each parameter found in the querystring of an URL string, e.g. https://www.beinformed.com?q=url => q=url
|
|
4947
|
+
*/
|
|
4948
|
+
addParametersFromString(href: string): this;
|
|
4874
4949
|
/**
|
|
4875
4950
|
* Add a querystring parameter to the parameter collection of this Href, skips parameters that have a value of null
|
|
4876
4951
|
*/
|
|
4877
|
-
addParameter(name: string, value?: MaybeAttributeValue, prefix?: string | null):
|
|
4952
|
+
addParameter(name: string, value?: MaybeAttributeValue, prefix?: string | null): this;
|
|
4878
4953
|
/**
|
|
4879
4954
|
* Adds or overwrites a parameter when it exists and value is not null.
|
|
4880
4955
|
* Removes the parameter when the value is null
|
|
4881
4956
|
*/
|
|
4882
|
-
setParameter(name: string, value?: MaybeAttributeValue, prefix?: string | null):
|
|
4883
|
-
removeParameter(name: string, prefix?: string | null, value?: MaybeAttributeValue):
|
|
4957
|
+
setParameter(name: string, value?: MaybeAttributeValue, prefix?: string | null): this;
|
|
4958
|
+
removeParameter(name: string, prefix?: string | null, value?: MaybeAttributeValue): this;
|
|
4884
4959
|
/**
|
|
4885
4960
|
* Retrieve a parameter by it's name and (optionally) prefix
|
|
4886
4961
|
*/
|
|
@@ -4898,6 +4973,12 @@ declare class Href<S = unknown> {
|
|
|
4898
4973
|
* Retrieve all parameters from the parameter collection in a querystring style name1=value1&name2=value2, without the prefix
|
|
4899
4974
|
*/
|
|
4900
4975
|
get querystring(): string;
|
|
4976
|
+
/**
|
|
4977
|
+
* Retrieve all parameters from the parameter collection in a querystring style prefix~name1=value1&prefix~name2=value2, with the prefix
|
|
4978
|
+
* The prefix is used to identify parameters per component on a grouping panel
|
|
4979
|
+
* @returns {string}
|
|
4980
|
+
*/
|
|
4981
|
+
get publicQuerystring(): string;
|
|
4901
4982
|
/**
|
|
4902
4983
|
* Retrieve the path combined with the base path (context-path) of the application, e.g. /BeInformed
|
|
4903
4984
|
*/
|
|
@@ -5066,7 +5147,7 @@ declare class ErrorResponse {
|
|
|
5066
5147
|
/**
|
|
5067
5148
|
* Return response error redirect href
|
|
5068
5149
|
*/
|
|
5069
|
-
get redirectHref(): Href<
|
|
5150
|
+
get redirectHref(): Href<HrefState> | undefined;
|
|
5070
5151
|
/**
|
|
5071
5152
|
* Return error response layouthint
|
|
5072
5153
|
*/
|
|
@@ -5103,7 +5184,7 @@ declare class ErrorResponse {
|
|
|
5103
5184
|
/**
|
|
5104
5185
|
* Get response url
|
|
5105
5186
|
*/
|
|
5106
|
-
get changePasswordHref(): Href<
|
|
5187
|
+
get changePasswordHref(): Href<HrefState> | undefined;
|
|
5107
5188
|
/**
|
|
5108
5189
|
* When no action information is present in the unauthorized response, for now we assume it is Basic Authentication
|
|
5109
5190
|
*/
|
|
@@ -5118,9 +5199,11 @@ declare class ErrorResponse {
|
|
|
5118
5199
|
interface ModularUIModel {
|
|
5119
5200
|
set connectKey(key: string | undefined);
|
|
5120
5201
|
get connectKey(): string | undefined;
|
|
5202
|
+
get key(): string;
|
|
5121
5203
|
get type(): string;
|
|
5122
5204
|
get selfhref(): Href | undefined;
|
|
5123
5205
|
get locale(): string | undefined;
|
|
5206
|
+
get label(): string;
|
|
5124
5207
|
}
|
|
5125
5208
|
interface ModelWithChildModels {
|
|
5126
5209
|
getInitialChildModelLinks(): LinkModel[];
|
|
@@ -5156,7 +5239,7 @@ interface RequestBaseOptions {
|
|
|
5156
5239
|
type RequestOptions = RequestURLOptions & RequestBaseOptions;
|
|
5157
5240
|
type UpdateHandler = (newModel: ModularUIModel) => ModularUIModel;
|
|
5158
5241
|
interface ModularUIRequestOptions extends RequestBaseOptions {
|
|
5159
|
-
targetModel?: TargetModel;
|
|
5242
|
+
targetModel?: TargetModel | TargetModel[];
|
|
5160
5243
|
forceTargetModel?: boolean;
|
|
5161
5244
|
updateHandler?: UpdateHandler;
|
|
5162
5245
|
childmodels?: boolean;
|
|
@@ -5188,11 +5271,15 @@ type Contributions = Record<string, unknown>;
|
|
|
5188
5271
|
interface ResourceData extends Data {
|
|
5189
5272
|
_links?: DefaultLinksData;
|
|
5190
5273
|
}
|
|
5191
|
-
interface
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5274
|
+
interface HrefState {
|
|
5275
|
+
formdata?: string | null | undefined;
|
|
5276
|
+
[key: string]: unknown;
|
|
5277
|
+
}
|
|
5278
|
+
interface HistoryLocation<S = HrefState> {
|
|
5279
|
+
pathname?: string | undefined;
|
|
5280
|
+
search?: string | undefined;
|
|
5281
|
+
state?: S | undefined;
|
|
5282
|
+
hash?: string | undefined;
|
|
5196
5283
|
key?: string | undefined;
|
|
5197
5284
|
}
|
|
5198
5285
|
interface DefaultLinksData {
|
|
@@ -5239,4 +5326,4 @@ declare class FetchException extends Error {
|
|
|
5239
5326
|
constructor(errorResponse: ModularUIErrorJSON | undefined, failedRequest?: XMLHttpRequest, requestOptions?: RequestOptions);
|
|
5240
5327
|
}
|
|
5241
5328
|
|
|
5242
|
-
export { type BooleanAttributeContributions as $, ActionCollection as A, BaseAttributeModel as B, CaptchaAttributeModel as C, DatetimeAttributeModel as D, LayoutHintRuleCollection as E, FetchException as F, MemoAttributeModel as G, HelptextAttributeModel as H, RangeAttributeModel as I, type AttributeData as J, type BaseAttributeContributions as K, LabelAttributeModel as L, type ModularUIErrorJSON as M, NumberAttributeModel as N, OPTION_MODE as O, PasswordAttributeModel as P, type BaseStringAttributeContributions as Q, type RegexObject as R, StringAttributeModel as S, type StringAttributeContributions as T, UploadAttributeModel as U, type MemoAttributeContributions as V, type PasswordAttributeContributions as W, XMLAttributeModel as X, type NumberAttributeContributions as Y, type MoneyAttributeContributions as Z, type DatetimeAttributeContributions as _, ActionModel as a, type ContentLinkData as a$, type ChoiceAttributeContributions as a0, type ChoiceAttributeOptionContributions as a1, type CompositeAttributeContributions as a2, type RangeAttributeContributions as a3, type CaptchaAttributeContributions as a4, type BinaryAttributeContributions as a5, type AttributeContributions as a6, type AttributeCollectionContributions as a7, type AttributeValue as a8, type MaybeAttributeValue as a9, ConceptRelationModel as aA, ConceptTypeDetailModel as aB, SourceReferenceCollection as aC, SourceReferenceModel as aD, type LabelType as aE, type PropertyType as aF, type Links as aG, type TextFragmentType as aH, type SectionReferenceType as aI, type SourceReferenceData as aJ, type PropertyData as aK, type LabelData as aL, type TextFragmentData as aM, type RelationDirection as aN, type RelationTypeType as aO, type ConceptLinkData as aP, type SectionFragment as aQ, type RelationData as aR, type TaxonomyType as aS, type ConceptDetailData as aT, type ConceptTypeDetailData as aU, type ConceptIndexData as aV, type ConceptIndexContributions as aW, ContentLinkModel as aX, SectionModel as aY, SubSectionModel as aZ, type ContentIndexData as a_, type AttributeModularUIData as aa, type AttributeRequestData as ab, type AttributeModel as ac, type ContentData as ad, type AttributePropertyElement as ae, type AttributeTextFragmentElement as af, type AttributeContentElement as ag, type DynamicSchema as ah, type NamedDynamicSchema as ai, type AnonymousDynamicSchema as aj, type CompositeDynamicSchema as ak, type ConstraintModel as al, type LayoutHintRule as am, type FileEntryType as an, type FilesType as ao, type FiletypeConstraintsType as ap, type FilesizeConstraintsType as aq, type AttributeSetContributions as ar, type ChildrenKey as as, BaseCollection as at, BaseModel as au, ResourceCollection as av, ResourceModel as aw, ConceptDetailModel as ax, ConceptLinkModel as ay, ConceptRelationCollection as az, type ActionFieldData as b, type FormObjectData as b$, type ContentIndexContributions as b0, type ContentTOCData as b1, type ContentDataItem as b2, type ContentDataSection as b3, type ContentContributions as b4, type ContentDetailData as b5, type ContentDetailContributions as b6, type SectionData as b7, type SubSectionData as b8, type ContentTypeData as b9, type RedirectTextObject as bA, type RedirectObject as bB, type ModularUIErrorResponse as bC, AssignmentFilterModel as bD,
|
|
5329
|
+
export { type BooleanAttributeContributions as $, ActionCollection as A, BaseAttributeModel as B, CaptchaAttributeModel as C, DatetimeAttributeModel as D, LayoutHintRuleCollection as E, FetchException as F, MemoAttributeModel as G, HelptextAttributeModel as H, RangeAttributeModel as I, type AttributeData as J, type BaseAttributeContributions as K, LabelAttributeModel as L, type ModularUIErrorJSON as M, NumberAttributeModel as N, OPTION_MODE as O, PasswordAttributeModel as P, type BaseStringAttributeContributions as Q, type RegexObject as R, StringAttributeModel as S, type StringAttributeContributions as T, UploadAttributeModel as U, type MemoAttributeContributions as V, type PasswordAttributeContributions as W, XMLAttributeModel as X, type NumberAttributeContributions as Y, type MoneyAttributeContributions as Z, type DatetimeAttributeContributions as _, ActionModel as a, type ContentLinkData as a$, type ChoiceAttributeContributions as a0, type ChoiceAttributeOptionContributions as a1, type CompositeAttributeContributions as a2, type RangeAttributeContributions as a3, type CaptchaAttributeContributions as a4, type BinaryAttributeContributions as a5, type AttributeContributions as a6, type AttributeCollectionContributions as a7, type AttributeValue as a8, type MaybeAttributeValue as a9, ConceptRelationModel as aA, ConceptTypeDetailModel as aB, SourceReferenceCollection as aC, SourceReferenceModel as aD, type LabelType as aE, type PropertyType as aF, type Links as aG, type TextFragmentType as aH, type SectionReferenceType as aI, type SourceReferenceData as aJ, type PropertyData as aK, type LabelData as aL, type TextFragmentData as aM, type RelationDirection as aN, type RelationTypeType as aO, type ConceptLinkData as aP, type SectionFragment as aQ, type RelationData as aR, type TaxonomyType as aS, type ConceptDetailData as aT, type ConceptTypeDetailData as aU, type ConceptIndexData as aV, type ConceptIndexContributions as aW, ContentLinkModel as aX, SectionModel as aY, SubSectionModel as aZ, type ContentIndexData as a_, type AttributeModularUIData as aa, type AttributeRequestData as ab, type AttributeModel as ac, type ContentData as ad, type AttributePropertyElement as ae, type AttributeTextFragmentElement as af, type AttributeContentElement as ag, type DynamicSchema as ah, type NamedDynamicSchema as ai, type AnonymousDynamicSchema as aj, type CompositeDynamicSchema as ak, type ConstraintModel as al, type LayoutHintRule as am, type FileEntryType as an, type FilesType as ao, type FiletypeConstraintsType as ap, type FilesizeConstraintsType as aq, type AttributeSetContributions as ar, type ChildrenKey as as, BaseCollection as at, BaseModel as au, ResourceCollection as av, ResourceModel as aw, ConceptDetailModel as ax, ConceptLinkModel as ay, ConceptRelationCollection as az, type ActionFieldData as b, type FormObjectData as b$, type ContentIndexContributions as b0, type ContentTOCData as b1, type ContentDataItem as b2, type ContentDataSection as b3, type ContentContributions as b4, type ContentDetailData as b5, type ContentDetailContributions as b6, type SectionData as b7, type SubSectionData as b8, type ContentTypeData as b9, type RedirectTextObject as bA, type RedirectObject as bB, type ModularUIErrorResponse as bC, AssignmentFilterModel as bD, FilterCollection as bE, FilterModel as bF, RangeFilterModel as bG, type IFilter as bH, type ContributionsForFilterCollection as bI, type FilterData as bJ, type FilterContribution as bK, type FilterCollectionData as bL, type FilterCollectionContributions as bM, type ChoiceFilterData as bN, type ChoiceFilterContribution as bO, type DateFilterData as bP, type DateFilterContribution as bQ, type AssignmentFilterData as bR, type AssignmentFilterContribution as bS, type DateRangeFilterData as bT, type DateRangeFilterContribution as bU, type NumberFilterData as bV, type NumberFilterContributions as bW, type NumberRangeFilterData as bX, type NumberRangeFilterContribution as bY, type StringFilterData as bZ, type StringFilterContributions as b_, type ContentTypeContributions as ba, type RelatedConceptsData as bb, type RelatedConceptContributions as bc, ContentConfiguration as bd, ContentConfigurationElements as be, ContentConfigurationEndResults as bf, ContentConfigurationQuestions as bg, ContentConfigurationResults as bh, type TextFragmentElement as bi, type ContentElement as bj, type PropertyElement as bk, type ConfigurationElements as bl, type QuestionConfiguration as bm, type ResultsConfiguration as bn, type ContentConfigurationContributions as bo, type EndResultsConfiguration as bp, DetailModel as bq, type BaseDetailData as br, type DetailData as bs, type BaseDetailContributions as bt, type DetailPanelContributions as bu, ErrorCollectionType as bv, ErrorCollection as bw, ErrorModel as bx, ErrorResponse as by, type TitleObject as bz, type ActionData as c, type HistoryLocation as c$, type FormData as c0, type SuccessData as c1, type ErrorObjectData as c2, type MissingObjectData as c3, type ResultsData as c4, type AnchorElementData as c5, type FormContributions as c6, type FormObjectContributions as c7, Href as c8, LayoutHintCollection as c9, type ListItemData as cA, type ListDetailData as cB, type ListDetailContributions as cC, type ListDetailAttributeData as cD, Parameter as cE, ParameterCollection as cF, ProcessStatusSettingsModel as cG, type ProcessStatusSettingsData as cH, type ProcessStatusSettingsContributions as cI, type UserServicesData as cJ, type UserServicesContributions as cK, type UserData as cL, type UserContributions as cM, type ModularUIModel as cN, type ModelWithChildModels as cO, type ModelOptions as cP, type ModularUIModelWithChildModels as cQ, ModularUIResponse as cR, type TargetModel as cS, type ModularUISpecificErrorResponse as cT, type AuthenticationType as cU, type ModelConfig as cV, type ISO_DATE as cW, type Data as cX, type Contributions as cY, type ResourceData as cZ, type HrefState as c_, LinkCollection as ca, LinkModel as cb, type LinkData as cc, type LinkContributions as cd, type NormalizedLinkData as ce, type NormalizedLinkContributions as cf, ListDetailModel as cg, GroupModel as ch, GroupingModel as ci, ListHeaderModel as cj, ListHref as ck, ListItemCollection as cl, ListItemModel as cm, ListModel as cn, PagesizeModel as co, PagingModel as cp, SortingModel as cq, SORT_ORDER as cr, SortOptionModel as cs, type ListData as ct, type ListContributions as cu, type PagingData as cv, type PagingContributions as cw, type GroupData as cx, type GroupingData as cy, type GroupingContributions as cz, type ActionContributions as d, type DefaultLinksData as d0, type TextWithPlaceholders as d1, type MessageParameters as d2, type ErrorMessage as d3, DateUtil as d4, DateTimeUtil as d5, TimeUtil as d6, TimestampUtil as d7, type OffsetInfo as d8, BaseDateTimeUtil as d9, type RequestURLOptions as da, type ProgressHandler as db, type RequestBaseOptions as dc, type RequestOptions as dd, type UpdateHandler as de, type ModularUIRequestOptions as df, AttributeCollection as e, AttributeContent as f, AttributeSetModel as g, BooleanAttributeModel as h, CHOICETYPE as i, ChoiceAttributeModel as j, ChoiceAttributeOptionCollection as k, type ChoiceAttributeOptionModelOptions as l, ChoiceAttributeOptionModel as m, CompositeAttributeChildCollection as n, CompositeAttributeModel as o, ATTRIBUTE_TYPE as p, FILTER_TYPE as q, ConstraintCollection as r, DateTimeDateFormatConstraint as s, DatetimeFormatConstraint as t, DateTimeTimeFormatConstraint as u, RegexConstraint as v, BaseLayoutHintRule as w, addLayoutHintRule as x, type LayoutHintRulesUpdater as y, updateLayoutHintRules as z };
|