@empathyco/x-components 3.0.0-alpha.21 → 3.0.0-alpha.25
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 +47 -0
- package/core/index.js +3 -1
- package/core/index.js.map +1 -1
- package/design-system/badge-default.css +46 -0
- package/design-system/base.css +4 -1
- package/design-system/button-primary.css +11 -2
- package/design-system/button-secondary.css +12 -3
- package/design-system/button-tertiary.css +11 -2
- package/design-system/default-theme.css +150 -42
- package/design-system/dropdown-default.css +68 -33
- package/design-system/dropdown-l.css +1 -1
- package/design-system/dropdown-m.css +1 -1
- package/design-system/dropdown-s.css +1 -1
- package/design-system/dropdown-xl.css +1 -1
- package/design-system/full-theme.css +2564 -194
- package/design-system/list-default.css +1 -0
- package/design-system/list-gap.css +61 -1
- package/design-system/list-padding.css +54 -1
- package/design-system/row-padding.css +2 -0
- package/design-system/utilities-background-color.css +20 -0
- package/design-system/utilities-border-color.css +20 -0
- package/design-system/utilities-border-radius.css +981 -0
- package/design-system/utilities-border-width.css +333 -0
- package/design-system/{shadow-shadow.css → utilities-box-shadow.css} +32 -23
- package/design-system/utilities-font-color.css +20 -0
- package/design-system/utilities-margin.css +435 -0
- package/design-system/utilities-padding.css +406 -0
- package/docs/API-reference/api/x-components.baseresultimage.animation.md +13 -0
- package/docs/API-reference/api/x-components.baseresultimage.md +1 -0
- package/docs/API-reference/api/x-components.capitalize.md +30 -0
- package/docs/API-reference/api/x-components.crossfade.md +15 -0
- package/docs/API-reference/api/x-components.md +10 -1
- package/docs/API-reference/api/{x-components.urlstate.filters.md → x-components.params.filters.md} +2 -2
- package/docs/API-reference/api/x-components.params.md +25 -0
- package/docs/API-reference/api/{x-components.urlstate.page.md → x-components.params.page.md} +2 -2
- package/docs/API-reference/api/{x-components.urlstate.query.md → x-components.params.query.md} +2 -2
- package/docs/API-reference/api/{x-components.urlstate.relatedtags.md → x-components.params.relatedtags.md} +2 -2
- package/docs/API-reference/api/x-components.params.scroll.md +11 -0
- package/docs/API-reference/api/{x-components.urlstate.sort.md → x-components.params.sort.md} +2 -2
- package/docs/API-reference/api/x-components.setquery.md +13 -0
- package/docs/API-reference/api/x-components.setqueryfromurl.md +13 -0
- package/docs/API-reference/api/x-components.setsearchextraparams.md +1 -1
- package/docs/API-reference/api/x-components.setsearchqueryfromurl.md +13 -0
- package/docs/API-reference/api/x-components.translatefromleft.md +15 -0
- package/docs/API-reference/api/x-components.translatefromright.md +1 -1
- package/docs/API-reference/api/x-components.updatestoreurl.md +13 -0
- package/docs/API-reference/api/x-components.updateurl.md +13 -0
- package/docs/API-reference/api/x-components.urlactions.md +2 -1
- package/docs/API-reference/api/x-components.urlactions.updatestorefromurl.md +17 -0
- package/docs/API-reference/api/x-components.urlactions.updateurl.md +1 -1
- package/docs/API-reference/api/x-components.urlgetters.md +2 -2
- package/docs/API-reference/api/x-components.urlgetters.urlmappedparamnames.md +3 -1
- package/docs/API-reference/api/x-components.urlgetters.urlparams.md +2 -0
- package/docs/API-reference/api/x-components.urlmutations.md +4 -1
- package/docs/API-reference/api/x-components.urlmutations.setextraparams.md +24 -0
- package/docs/API-reference/api/x-components.urlmutations.setparams.md +24 -0
- package/docs/API-reference/api/x-components.urlmutations.setquery.md +24 -0
- package/docs/API-reference/api/x-components.urlmutations.seturlconfig.md +3 -1
- package/docs/API-reference/api/x-components.urlparamkey.md +3 -1
- package/docs/API-reference/api/x-components.urlstate.md +1 -5
- package/docs/API-reference/api/x-components.urlstate.params.md +11 -0
- package/docs/API-reference/api/x-components.urlxevents.md +1 -0
- package/docs/API-reference/api/x-components.urlxevents.paramsloadedfromurl.md +13 -0
- package/docs/API-reference/api/x-types.banner.md +2 -2
- package/docs/API-reference/api/x-types.historyquery.md +2 -2
- package/docs/API-reference/api/x-types.nextqueries.md +2 -2
- package/docs/API-reference/api/x-types.nextquery.md +2 -2
- package/docs/API-reference/api/x-types.promoted.md +2 -2
- package/docs/API-reference/api/x-types.relatedtag.md +2 -2
- package/docs/API-reference/api/x-types.result.md +2 -2
- package/docs/API-reference/api/x-types.suggestion.md +2 -2
- package/docs/API-reference/components/common/animations/x-components.cross-fade.md +30 -0
- package/docs/API-reference/components/common/animations/x-components.translate-from-left.md +30 -0
- package/docs/API-reference/components/common/animations/x-components.translate-from-right.md +6 -5
- package/docs/API-reference/components/common/result/x-components.base-result-image.md +7 -6
- package/docs/API-reference/components/url/x-components.url-handler.md +86 -0
- package/docs/sidebar.json +1 -1
- package/js/components/animations/cross-fade.vue.js +58 -0
- package/js/components/animations/cross-fade.vue.js.map +1 -0
- package/js/components/animations/cross-fade.vue_rollup-plugin-vue=script.js +23 -0
- package/js/components/animations/cross-fade.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/animations/translate-from-left.vue.js +58 -0
- package/js/components/animations/translate-from-left.vue.js.map +1 -0
- package/js/components/animations/translate-from-left.vue_rollup-plugin-vue=script.js +23 -0
- package/js/components/animations/translate-from-left.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/animations/translate-from-right.vue.js +2 -2
- package/js/components/animations/translate-from-right.vue.js.map +1 -1
- package/js/components/animations/translate-from-right.vue_rollup-plugin-vue=script.js +2 -2
- package/js/components/animations/translate-from-right.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/base-dropdown.vue.js +2 -2
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/base-rating.vue.js +1 -1
- package/js/components/column-picker/base-column-picker-list.vue.js +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js +1 -1
- package/js/components/layouts/single-column-layout.vue.js +1 -1
- package/js/components/modals/base-modal.vue.js +1 -1
- package/js/components/result/base-result-image.vue.js +40 -30
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue_rollup-plugin-vue=script.js +3 -0
- package/js/components/result/base-result-image.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/sliding-panel.vue.js +1 -1
- package/js/index.js +6 -4
- package/js/index.js.map +1 -1
- package/js/utils/string.js +16 -1
- package/js/utils/string.js.map +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/selected-filters-list.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue.js +1 -1
- package/js/x-modules/search/components/banner.vue.js +1 -1
- package/js/x-modules/search/components/partial-query-button.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/search/components/partial-query-button.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue.js +1 -1
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/sort.mixin.js +2 -0
- package/js/x-modules/search/components/sort.mixin.js.map +1 -1
- package/js/x-modules/search/components/spellcheck-button.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/search/components/spellcheck-button.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js +2 -0
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/wiring.js +11 -1
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/search-box/wiring.js +11 -1
- package/js/x-modules/search-box/wiring.js.map +1 -1
- package/js/x-modules/url/store/actions/update-store-from-url.action.js +76 -0
- package/js/x-modules/url/store/actions/update-store-from-url.action.js.map +1 -0
- package/js/x-modules/url/store/actions/update-url.action.js +22 -5
- package/js/x-modules/url/store/actions/update-url.action.js.map +1 -1
- package/js/x-modules/url/store/getters/{url-param-names.getter.js → url-mapped-param-names.getter.js} +4 -4
- package/js/x-modules/url/store/getters/url-mapped-param-names.getter.js.map +1 -0
- package/js/x-modules/url/store/getters/url-params.getter.js +5 -4
- package/js/x-modules/url/store/getters/url-params.getter.js.map +1 -1
- package/js/x-modules/url/store/module.js +22 -7
- package/js/x-modules/url/store/module.js.map +1 -1
- package/js/x-modules/url/wiring.js +41 -2
- package/js/x-modules/url/wiring.js.map +1 -1
- package/package.json +5 -5
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter.api.json +1 -1
- package/report/x-components.api.json +749 -107
- package/report/x-components.api.md +72 -14
- package/report/x-types.api.json +51 -23
- package/search/index.js +1 -1
- package/search-box/index.js +1 -1
- package/types/components/animations/cross-fade.vue.d.ts +10 -0
- package/types/components/animations/cross-fade.vue.d.ts.map +1 -0
- package/types/components/animations/index.d.ts +2 -0
- package/types/components/animations/index.d.ts.map +1 -1
- package/types/components/animations/translate-from-left.vue.d.ts +10 -0
- package/types/components/animations/translate-from-left.vue.d.ts.map +1 -0
- package/types/components/animations/translate-from-right.vue.d.ts +2 -2
- package/types/components/result/base-result-image.vue.d.ts +7 -0
- package/types/components/result/base-result-image.vue.d.ts.map +1 -1
- package/types/utils/string.d.ts +13 -0
- package/types/utils/string.d.ts.map +1 -1
- package/types/x-modules/search/wiring.d.ts +13 -2
- package/types/x-modules/search/wiring.d.ts.map +1 -1
- package/types/x-modules/search-box/wiring.d.ts +11 -0
- package/types/x-modules/search-box/wiring.d.ts.map +1 -1
- package/types/x-modules/url/components/index.d.ts +2 -0
- package/types/x-modules/url/components/index.d.ts.map +1 -0
- package/types/x-modules/url/events.types.d.ts +5 -0
- package/types/x-modules/url/events.types.d.ts.map +1 -1
- package/types/x-modules/url/store/actions/update-store-from-url.action.d.ts +11 -0
- package/types/x-modules/url/store/actions/update-store-from-url.action.d.ts.map +1 -0
- package/types/x-modules/url/store/actions/update-url.action.d.ts.map +1 -1
- package/types/x-modules/url/store/getters/{url-param-names.getter.d.ts → url-mapped-param-names.getter.d.ts} +1 -1
- package/types/x-modules/url/store/getters/url-mapped-param-names.getter.d.ts.map +1 -0
- package/types/x-modules/url/store/getters/url-params.getter.d.ts.map +1 -1
- package/types/x-modules/url/store/module.d.ts.map +1 -1
- package/types/x-modules/url/store/types.d.ts +44 -5
- package/types/x-modules/url/store/types.d.ts.map +1 -1
- package/types/x-modules/url/wiring.d.ts +33 -0
- package/types/x-modules/url/wiring.d.ts.map +1 -1
- package/url/index.js +1 -1
- package/design-system/list-background.css +0 -20
- package/design-system/list-border.css +0 -44
- package/design-system/row-background.css +0 -20
- package/js/x-modules/url/store/getters/url-param-names.getter.js.map +0 -1
- package/types/x-modules/url/store/getters/url-param-names.getter.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-params.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/getters/url-params.getter.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,eAAe,EAAE,MAAM,UAAU,CAAC;AAG1D;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"url-params.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/getters/url-params.getter.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,eAAe,EAAE,MAAM,UAAU,CAAC;AAG1D;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,WAAW,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/url/store/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/url/store/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAqC7B,CAAC"}
|
|
@@ -8,12 +8,21 @@ import { UrlConfig } from '../config.types';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface UrlState {
|
|
10
10
|
config: UrlConfig;
|
|
11
|
+
params: Record<keyof Params, UrlParamValue>;
|
|
12
|
+
extraParams: Dictionary<UrlParamValue>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* URL store params.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface Params {
|
|
11
20
|
query: string;
|
|
12
21
|
page: number;
|
|
13
22
|
filters: string[];
|
|
14
23
|
sort: string;
|
|
15
24
|
relatedTags: string[];
|
|
16
|
-
|
|
25
|
+
scroll: number;
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* URL store getters.
|
|
@@ -21,15 +30,17 @@ export interface UrlState {
|
|
|
21
30
|
* @public
|
|
22
31
|
*/
|
|
23
32
|
export interface UrlGetters {
|
|
33
|
+
/** The current params in the url. */
|
|
24
34
|
urlParams: Dictionary<UrlParamValue>;
|
|
25
|
-
|
|
35
|
+
/** All the parameter names with their corresponding key. */
|
|
36
|
+
urlMappedParamNames: Dictionary<UrlParamKey | string>;
|
|
26
37
|
}
|
|
27
38
|
/**
|
|
28
39
|
* The key of the parameter to store in the URL.
|
|
29
40
|
*
|
|
30
41
|
* @public
|
|
31
42
|
*/
|
|
32
|
-
export declare type UrlParamKey = string
|
|
43
|
+
export declare type UrlParamKey = Extract<keyof Params, string>;
|
|
33
44
|
/**
|
|
34
45
|
* The allowed values of the parameters to store in the URL.
|
|
35
46
|
*
|
|
@@ -42,7 +53,30 @@ export declare type UrlParamValue = string | number | boolean | Array<string | n
|
|
|
42
53
|
* @public
|
|
43
54
|
*/
|
|
44
55
|
export interface UrlMutations {
|
|
56
|
+
/**
|
|
57
|
+
* Sets a new url configuration.
|
|
58
|
+
*
|
|
59
|
+
* @param config - The new config of the Url.
|
|
60
|
+
*/
|
|
45
61
|
setUrlConfig(config: UrlConfig): void;
|
|
62
|
+
/**
|
|
63
|
+
* Sets new extra params.
|
|
64
|
+
*
|
|
65
|
+
* @param extraParam - The new extra params of the Url.
|
|
66
|
+
*/
|
|
67
|
+
setExtraParams(extraParam: Dictionary<UrlParamValue>): void;
|
|
68
|
+
/**
|
|
69
|
+
* Sets the new params.
|
|
70
|
+
*
|
|
71
|
+
* @param params - The new params of the Url.
|
|
72
|
+
*/
|
|
73
|
+
setParams(params: Record<keyof Params, UrlParamValue>): void;
|
|
74
|
+
/**
|
|
75
|
+
* Sets the new query.
|
|
76
|
+
*
|
|
77
|
+
* @param query - The new query of the Url.
|
|
78
|
+
*/
|
|
79
|
+
setQuery(query: string): void;
|
|
46
80
|
}
|
|
47
81
|
/**
|
|
48
82
|
* URL store actions.
|
|
@@ -52,12 +86,17 @@ export interface UrlMutations {
|
|
|
52
86
|
export interface UrlActions {
|
|
53
87
|
/**
|
|
54
88
|
* Updates the URL with values from the store. It replaces the current url with a new entry in the
|
|
55
|
-
* browser history. Also returns the params with the custom names provided in the config if
|
|
56
|
-
* present.
|
|
89
|
+
* browser history. Also returns the params with the custom names provided in the config if any.
|
|
57
90
|
*
|
|
58
91
|
* @public
|
|
59
92
|
*/
|
|
60
93
|
updateUrl(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Updates the store with values from the URL.
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
updateStoreFromUrl(): void;
|
|
61
100
|
}
|
|
62
101
|
/**
|
|
63
102
|
* URL type safe store module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/url/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/url/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,MAAM,EAAE,aAAa,CAAC,CAAC;IAC5C,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,qCAAqC;IACrC,SAAS,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IAErC,4DAA4D;IAC5D,mBAAmB,EAAE,UAAU,CAAC,WAAW,GAAG,MAAM,CAAC,CAAC;CACvD;AAED;;;;GAIG;AACH,oBAAY,WAAW,GAAG,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC,CAAC;AAExD;;;;GAIG;AACH,oBAAY,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEzF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAC5D;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,SAAS,IAAI,IAAI,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,IAAI,IAAI,CAAC;CAC5B;AAED;;;;GAIG;AACH,oBAAY,eAAe,GAAG,YAAY,CAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export declare const setUrlConfigWire: import("../..").Wire<import("./config.types").UrlConfig>;
|
|
7
|
+
/**
|
|
8
|
+
* Updates the URL.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare const updateUrl: import("../..").AnyWire;
|
|
13
|
+
/**
|
|
14
|
+
* Updates the store state from the URL.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const updateStoreUrl: import("../..").AnyWire;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the query of the url module.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare const setQuery: import("../..").Wire<string>;
|
|
7
25
|
/**
|
|
8
26
|
* Wiring configuration for the {@link UrlXModule | url module}.
|
|
9
27
|
*
|
|
@@ -13,5 +31,20 @@ export declare const urlWiring: {
|
|
|
13
31
|
UrlConfigProvided: {
|
|
14
32
|
setUrlConfigWire: import("../..").Wire<import("./config.types").UrlConfig>;
|
|
15
33
|
};
|
|
34
|
+
UserAcceptedAQuery: {
|
|
35
|
+
setQuery: import("../..").Wire<string>;
|
|
36
|
+
};
|
|
37
|
+
UserClearedQuery: {
|
|
38
|
+
setQuery: import("../..").Wire<string>;
|
|
39
|
+
};
|
|
40
|
+
UrlStateChanged: {
|
|
41
|
+
updateUrl: import("../..").AnyWire;
|
|
42
|
+
};
|
|
43
|
+
DocumentLoaded: {
|
|
44
|
+
updateStoreUrl: import("../..").AnyWire;
|
|
45
|
+
};
|
|
46
|
+
DocumentHistoryChanged: {
|
|
47
|
+
updateStoreUrl: import("../..").AnyWire;
|
|
48
|
+
};
|
|
16
49
|
};
|
|
17
50
|
//# sourceMappingURL=wiring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/url/wiring.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/url/wiring.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,0DAA6B,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,SAAS,yBAA0C,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,cAAc,yBAAmD,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,QAAQ,8BAAyB,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC"}
|
package/url/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { urlXStoreModule } from '../js/x-modules/url/store/module.js';
|
|
2
2
|
export { urlEmitters } from '../js/x-modules/url/store/emitters.js';
|
|
3
|
-
export { setUrlConfigWire, urlWiring } from '../js/x-modules/url/wiring.js';
|
|
3
|
+
export { setQuery, setUrlConfigWire, updateStoreUrl, updateUrl, urlWiring } from '../js/x-modules/url/wiring.js';
|
|
4
4
|
export { urlXModule } from '../js/x-modules/url/x-module.js';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.x-list.x-list--background-lead {
|
|
2
|
-
background-color: var(--x-color-base-lead); }
|
|
3
|
-
|
|
4
|
-
.x-list.x-list--background-auxiliary {
|
|
5
|
-
background-color: var(--x-color-base-auxiliary); }
|
|
6
|
-
|
|
7
|
-
.x-list.x-list--background-neutral-10 {
|
|
8
|
-
background-color: var(--x-color-base-neutral-10); }
|
|
9
|
-
|
|
10
|
-
.x-list.x-list--background-neutral-35 {
|
|
11
|
-
background-color: var(--x-color-base-neutral-35); }
|
|
12
|
-
|
|
13
|
-
.x-list.x-list--background-neutral-70 {
|
|
14
|
-
background-color: var(--x-color-base-neutral-70); }
|
|
15
|
-
|
|
16
|
-
.x-list.x-list--background-neutral-95 {
|
|
17
|
-
background-color: var(--x-color-base-neutral-95); }
|
|
18
|
-
|
|
19
|
-
.x-list.x-list--background-neutral-100 {
|
|
20
|
-
background-color: var(--x-color-base-neutral-100); }
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--x-color-border-list-border: var(--x-color-base-lead);
|
|
3
|
-
--x-size-border-width-list-border: var(--x-size-border-width-base); }
|
|
4
|
-
|
|
5
|
-
.x-list--border.x-list {
|
|
6
|
-
border-color: var(--x-color-border-list-border);
|
|
7
|
-
border-style: solid;
|
|
8
|
-
border-width: var(--x-size-border-width-list-border); }
|
|
9
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-top:not(.x-list--border-right) {
|
|
10
|
-
border-right-width: 0; }
|
|
11
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-top:not(.x-list--border-right) {
|
|
12
|
-
border-left-width: 0; }
|
|
13
|
-
.x-list--border.x-list.x-list--border-top:not(.x-list--border-bottom) {
|
|
14
|
-
border-bottom-width: 0; }
|
|
15
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-top:not(.x-list--border-left) {
|
|
16
|
-
border-left-width: 0; }
|
|
17
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-top:not(.x-list--border-left) {
|
|
18
|
-
border-right-width: 0; }
|
|
19
|
-
.x-list--border.x-list.x-list--border-right:not(.x-list--border-top) {
|
|
20
|
-
border-top-width: 0; }
|
|
21
|
-
.x-list--border.x-list.x-list--border-right:not(.x-list--border-bottom) {
|
|
22
|
-
border-bottom-width: 0; }
|
|
23
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-right:not(.x-list--border-left) {
|
|
24
|
-
border-left-width: 0; }
|
|
25
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-right:not(.x-list--border-left) {
|
|
26
|
-
border-right-width: 0; }
|
|
27
|
-
.x-list--border.x-list.x-list--border-bottom:not(.x-list--border-top) {
|
|
28
|
-
border-top-width: 0; }
|
|
29
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-bottom:not(.x-list--border-right) {
|
|
30
|
-
border-right-width: 0; }
|
|
31
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-bottom:not(.x-list--border-right) {
|
|
32
|
-
border-left-width: 0; }
|
|
33
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-bottom:not(.x-list--border-left) {
|
|
34
|
-
border-left-width: 0; }
|
|
35
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-bottom:not(.x-list--border-left) {
|
|
36
|
-
border-right-width: 0; }
|
|
37
|
-
.x-list--border.x-list.x-list--border-left:not(.x-list--border-top) {
|
|
38
|
-
border-top-width: 0; }
|
|
39
|
-
[dir="ltr"] .x-list--border.x-list.x-list--border-left:not(.x-list--border-right) {
|
|
40
|
-
border-right-width: 0; }
|
|
41
|
-
[dir="rtl"] .x-list--border.x-list.x-list--border-left:not(.x-list--border-right) {
|
|
42
|
-
border-left-width: 0; }
|
|
43
|
-
.x-list--border.x-list.x-list--border-left:not(.x-list--border-bottom) {
|
|
44
|
-
border-bottom-width: 0; }
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.x-row.x-row--background-lead {
|
|
2
|
-
background-color: var(--x-color-base-lead); }
|
|
3
|
-
|
|
4
|
-
.x-row.x-row--background-auxiliary {
|
|
5
|
-
background-color: var(--x-color-base-auxiliary); }
|
|
6
|
-
|
|
7
|
-
.x-row.x-row--background-neutral-10 {
|
|
8
|
-
background-color: var(--x-color-base-neutral-10); }
|
|
9
|
-
|
|
10
|
-
.x-row.x-row--background-neutral-35 {
|
|
11
|
-
background-color: var(--x-color-base-neutral-35); }
|
|
12
|
-
|
|
13
|
-
.x-row.x-row--background-neutral-70 {
|
|
14
|
-
background-color: var(--x-color-base-neutral-70); }
|
|
15
|
-
|
|
16
|
-
.x-row.x-row--background-neutral-95 {
|
|
17
|
-
background-color: var(--x-color-base-neutral-95); }
|
|
18
|
-
|
|
19
|
-
.x-row.x-row--background-neutral-100 {
|
|
20
|
-
background-color: var(--x-color-base-neutral-100); }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-param-names.getter.js","sources":["../../../../../../src/x-modules/url/store/getters/url-param-names.getter.ts"],"sourcesContent":["import { Dictionary } from '../../../../utils/types';\nimport { UrlParamKey, UrlXStoreModule } from '../types';\nimport { reduce } from '../../../../utils/object';\n\n/**\n * Default implementation for the {@link UrlGetters.urlMappedParamNames} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the url module.\n *\n * @returns The url params.\n *\n * @public\n */\nexport const urlMappedParamNames: UrlXStoreModule['getters']['urlMappedParamNames'] = ({\n config: { urlParamNames },\n extraParams,\n ...rawUrlParams\n}) => {\n return reduce(\n { ...rawUrlParams, ...extraParams },\n (urlParams, key) => {\n urlParams[key] = urlParamNames[key] ?? key;\n return urlParams;\n },\n {} as Dictionary<UrlParamKey>\n );\n};\n"],"names":[],"mappings":";;;AAIA;;;;;;;;;IASa,mBAAmB,GAAsD,UAAC,EAItF;IAHW,IAAA,aAAa,0BAAA,EACvB,WAAW,iBAAA,EACR,YAAY,cAHsE,yBAItF,CADgB;IAEf,OAAO,MAAM,uBACN,YAAY,GAAK,WAAW,GACjC,UAAC,SAAS,EAAE,GAAG;;QACb,SAAS,CAAC,GAAG,CAAC,GAAG,MAAA,aAAa,CAAC,GAAG,CAAC,mCAAI,GAAG,CAAC;QAC3C,OAAO,SAAS,CAAC;KAClB,EACD,EAA6B,CAC9B,CAAC;AACJ;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-param-names.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/getters/url-param-names.getter.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,eAAe,EAAE,MAAM,UAAU,CAAC;AAGxD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAajF,CAAC"}
|