@empathyco/x-components 3.0.0-alpha.247 → 3.0.0-alpha.248
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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [3.0.0-alpha.248](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.247...@empathyco/x-components@3.0.0-alpha.248) (2022-12-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove warning when the event is not defined (#918) ([7f70e25](https://github.com/empathyco/x/commit/7f70e257bae41ba34f72c1c580c79862448faea9)), closes [EX-7617](https://searchbroker.atlassian.net/browse/EX-7617)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
# Change Log
|
|
2
16
|
|
|
3
17
|
All notable changes to this project will be documented in this file. See
|
|
@@ -625,6 +625,39 @@
|
|
|
625
625
|
.x-facet > *:first-child .x-icon:last-child:not(:first-child), .x-facet__header .x-icon:last-child:not(:first-child) {
|
|
626
626
|
margin-left: auto;
|
|
627
627
|
}
|
|
628
|
+
:root {
|
|
629
|
+
--x-color-background-facet-default: transparent;
|
|
630
|
+
--x-color-border-facet-default: var(--x-color-background-facet-default);
|
|
631
|
+
--x-color-text-facet-default: var(--x-color-text-default);
|
|
632
|
+
--x-color-background-facet-header-default: var(--x-color-background-facet-default);
|
|
633
|
+
--x-color-border-facet-header-default: var(--x-color-background-facet-default);
|
|
634
|
+
--x-size-border-width-facet-default: var(--x-size-border-width-base);
|
|
635
|
+
--x-size-border-width-top-facet-default: var(--x-size-border-width-facet-default);
|
|
636
|
+
--x-size-border-width-right-facet-default: var(--x-size-border-width-facet-default);
|
|
637
|
+
--x-size-border-width-bottom-facet-default: var(--x-size-border-width-facet-default);
|
|
638
|
+
--x-size-border-width-left-facet-default: var(--x-size-border-width-facet-default);
|
|
639
|
+
--x-size-border-width-facet-header-default: var(--x-size-border-width-base);
|
|
640
|
+
--x-size-border-width-top-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
641
|
+
--x-size-border-width-right-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
642
|
+
--x-size-border-width-bottom-facet-header-default: var(
|
|
643
|
+
--x-size-border-width-facet-header-default
|
|
644
|
+
);
|
|
645
|
+
--x-size-border-width-left-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
646
|
+
--x-size-border-radius-facet-default: var(--x-size-border-radius-base-none);
|
|
647
|
+
--x-size-border-radius-top-left-facet-default: var(--x-size-border-radius-facet-default);
|
|
648
|
+
--x-size-border-radius-top-right-facet-default: var(--x-size-border-radius-facet-default);
|
|
649
|
+
--x-size-border-radius-bottom-right-facet-default: var(--x-size-border-radius-facet-default);
|
|
650
|
+
--x-size-border-radius-bottom-left-facet-default: var(--x-size-border-radius-facet-default);
|
|
651
|
+
--x-size-padding-top-facet-header-default: var(--x-size-base-03);
|
|
652
|
+
--x-size-padding-right-facet-header-default: 0;
|
|
653
|
+
--x-size-padding-bottom-facet-header-default: var(--x-size-base-03);
|
|
654
|
+
--x-size-padding-left-facet-header-default: 0;
|
|
655
|
+
--x-size-gap-facet-header-default: var(--x-size-base-03);
|
|
656
|
+
--x-font-family-facet-default: var(--x-font-family-title3);
|
|
657
|
+
--x-size-font-facet-default: var(--x-size-font-title3);
|
|
658
|
+
--x-number-font-weight-facet-default: var(--x-number-font-weight-title3);
|
|
659
|
+
--x-size-line-height-facet-default: var(--x-size-line-height-title3);
|
|
660
|
+
}
|
|
628
661
|
.x-facet--line.x-facet,
|
|
629
662
|
.x-facet--line .x-facet {
|
|
630
663
|
--x-color-border-facet-header-default: var(--x-color-border-facet-header-line);
|
|
@@ -7259,37 +7292,3 @@
|
|
|
7259
7292
|
.x-normal-case {
|
|
7260
7293
|
text-transform: none;
|
|
7261
7294
|
}
|
|
7262
|
-
|
|
7263
|
-
:root {
|
|
7264
|
-
--x-color-background-facet-default: transparent;
|
|
7265
|
-
--x-color-border-facet-default: var(--x-color-background-facet-default);
|
|
7266
|
-
--x-color-text-facet-default: var(--x-color-text-default);
|
|
7267
|
-
--x-color-background-facet-header-default: var(--x-color-background-facet-default);
|
|
7268
|
-
--x-color-border-facet-header-default: var(--x-color-background-facet-default);
|
|
7269
|
-
--x-size-border-width-facet-default: var(--x-size-border-width-base);
|
|
7270
|
-
--x-size-border-width-top-facet-default: var(--x-size-border-width-facet-default);
|
|
7271
|
-
--x-size-border-width-right-facet-default: var(--x-size-border-width-facet-default);
|
|
7272
|
-
--x-size-border-width-bottom-facet-default: var(--x-size-border-width-facet-default);
|
|
7273
|
-
--x-size-border-width-left-facet-default: var(--x-size-border-width-facet-default);
|
|
7274
|
-
--x-size-border-width-facet-header-default: var(--x-size-border-width-base);
|
|
7275
|
-
--x-size-border-width-top-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
7276
|
-
--x-size-border-width-right-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
7277
|
-
--x-size-border-width-bottom-facet-header-default: var(
|
|
7278
|
-
--x-size-border-width-facet-header-default
|
|
7279
|
-
);
|
|
7280
|
-
--x-size-border-width-left-facet-header-default: var(--x-size-border-width-facet-header-default);
|
|
7281
|
-
--x-size-border-radius-facet-default: var(--x-size-border-radius-base-none);
|
|
7282
|
-
--x-size-border-radius-top-left-facet-default: var(--x-size-border-radius-facet-default);
|
|
7283
|
-
--x-size-border-radius-top-right-facet-default: var(--x-size-border-radius-facet-default);
|
|
7284
|
-
--x-size-border-radius-bottom-right-facet-default: var(--x-size-border-radius-facet-default);
|
|
7285
|
-
--x-size-border-radius-bottom-left-facet-default: var(--x-size-border-radius-facet-default);
|
|
7286
|
-
--x-size-padding-top-facet-header-default: var(--x-size-base-03);
|
|
7287
|
-
--x-size-padding-right-facet-header-default: 0;
|
|
7288
|
-
--x-size-padding-bottom-facet-header-default: var(--x-size-base-03);
|
|
7289
|
-
--x-size-padding-left-facet-header-default: 0;
|
|
7290
|
-
--x-size-gap-facet-header-default: var(--x-size-base-03);
|
|
7291
|
-
--x-font-family-facet-default: var(--x-font-family-title3);
|
|
7292
|
-
--x-size-font-facet-default: var(--x-size-font-title3);
|
|
7293
|
-
--x-number-font-weight-facet-default: var(--x-number-font-weight-title3);
|
|
7294
|
-
--x-size-line-height-facet-default: var(--x-size-line-height-title3);
|
|
7295
|
-
}
|
|
@@ -23,10 +23,6 @@ class StateMachine {
|
|
|
23
23
|
so we have to force it to be defined */
|
|
24
24
|
this.currentState = currentState[event];
|
|
25
25
|
}
|
|
26
|
-
else {
|
|
27
|
-
//eslint-disable-next-line no-console
|
|
28
|
-
console.warn(`The ${event} event is not defined as a possible transition for ${this.currentState}`);
|
|
29
|
-
}
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-machine.service.js","sources":["../../../src/services/state-machine.service.ts"],"sourcesContent":["import { Machine } from './services.types';\n\n/**\n * Default implementation for the {@link StateMachine}.\n *\n * @public\n */\nexport class StateMachine<SomeStatus extends string, SomeEvent extends string> {\n /**\n * A {@link Machine} having the different steps transition.\n *\n * @internal\n */\n private machine: Machine<SomeStatus, SomeEvent>;\n /**\n * The current state of the machine.\n *\n * @public\n */\n public currentState: SomeStatus;\n\n public constructor(machine: Machine<SomeStatus, SomeEvent>) {\n this.machine = machine;\n this.currentState = machine.initial;\n }\n\n /**\n * Determines which state will be the next to be transitioned.\n *\n * @param event - The event to determine which state is the new one to be\n * transitioned.\n *\n * @public\n */\n transition(event: SomeEvent): void {\n const currentState = this.machine.states[this.currentState];\n if (currentState[event]) {\n /* Typescript is not detecting the type guard in the previous if\n so we have to force it to be defined */\n this.currentState = currentState[event]!;\n }
|
|
1
|
+
{"version":3,"file":"state-machine.service.js","sources":["../../../src/services/state-machine.service.ts"],"sourcesContent":["import { Machine } from './services.types';\n\n/**\n * Default implementation for the {@link StateMachine}.\n *\n * @public\n */\nexport class StateMachine<SomeStatus extends string, SomeEvent extends string> {\n /**\n * A {@link Machine} having the different steps transition.\n *\n * @internal\n */\n private machine: Machine<SomeStatus, SomeEvent>;\n /**\n * The current state of the machine.\n *\n * @public\n */\n public currentState: SomeStatus;\n\n public constructor(machine: Machine<SomeStatus, SomeEvent>) {\n this.machine = machine;\n this.currentState = machine.initial;\n }\n\n /**\n * Determines which state will be the next to be transitioned.\n *\n * @param event - The event to determine which state is the new one to be\n * transitioned.\n *\n * @public\n */\n transition(event: SomeEvent): void {\n const currentState = this.machine.states[this.currentState];\n if (currentState[event]) {\n /* Typescript is not detecting the type guard in the previous if\n so we have to force it to be defined */\n this.currentState = currentState[event]!;\n }\n }\n}\n"],"names":[],"mappings":"AAEA;;;;;MAKa,YAAY;IAcvB,YAAmB,OAAuC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;KACrC;;;;;;;;;IAUD,UAAU,CAAC,KAAgB;QACzB,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5D,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;;;YAGvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,KAAK,CAAE,CAAC;SAC1C;KACF;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.248",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@cypress/vue": "~2.2.4",
|
|
86
86
|
"@cypress/webpack-dev-server": "~1.8.4",
|
|
87
87
|
"@empathyco/x-adapter-platform": "^1.0.0-alpha.45",
|
|
88
|
-
"@empathyco/x-tailwindcss": "^0.2.0-alpha.
|
|
88
|
+
"@empathyco/x-tailwindcss": "^0.2.0-alpha.34",
|
|
89
89
|
"@microsoft/api-documenter": "~7.15.3",
|
|
90
90
|
"@microsoft/api-extractor": "~7.19.4",
|
|
91
91
|
"@rollup/plugin-commonjs": "~21.0.1",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"access": "public",
|
|
136
136
|
"directory": "dist"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "4bf98494d91c4f0b7539f594aca7df88ac7f65b8"
|
|
139
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-machine.service.d.ts","sourceRoot":"","sources":["../../../src/services/state-machine.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC3E;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAiC;IAChD;;;;OAIG;IACI,YAAY,EAAE,UAAU,CAAC;gBAEb,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC;IAK1D;;;;;;;OAOG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"state-machine.service.d.ts","sourceRoot":"","sources":["../../../src/services/state-machine.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC3E;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAiC;IAChD;;;;OAIG;IACI,YAAY,EAAE,UAAU,CAAC;gBAEb,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC;IAK1D;;;;;;;OAOG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;CAQnC"}
|