@supersoniks/concorde 3.3.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +154 -154
- package/concorde-core.es.js +2366 -2356
- package/dist/concorde-core.bundle.js +154 -154
- package/dist/concorde-core.es.js +2366 -2356
- package/package.json +1 -4
- package/src/core/_types/types.ts +1 -1
- package/src/core/components/functional/queue/queue.ts +3 -4
- package/src/core/components/functional/states/states.demo.ts +5 -2
- package/src/core/components/functional/states/states.spec.ts +14 -13
- package/src/core/components/functional/submit/submit.ts +2 -2
- package/src/core/components/ui/captcha/captcha.ts +16 -12
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +41 -7
- package/src/core/components/ui/pop/pop.ts +6 -6
- package/src/core/components/ui/theme/theme.ts +3 -3
- package/src/core/decorators/subscriber/bind.ts +2 -2
- package/src/core/decorators/subscriber/onAssign.ts +6 -4
- package/src/core/directives/DataProvider.ts +47 -60
- package/src/core/directives/Wording.ts +4 -4
- package/src/core/mixins/FormCheckable.ts +12 -12
- package/src/core/mixins/FormElement.ts +1 -1
- package/src/core/utils/PublisherProxy.ts +260 -178
- package/src/core/utils/Utils.ts +3 -0
- package/src/core/utils/api.ts +4 -6
- package/src/dataprovider.ts +1 -0
- package/src/directives.ts +27 -13
- package/src/docs/_misc/on-assign.md +5 -5
- package/src/docs/search/docs-search.json +70 -0
- package/src/tsconfig.json +0 -9
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/utils.ts +2 -4
- package/mcp-server/COMPARISON-MCP.md +0 -176
- package/mcp-server/README-MCP-NODEJS.md +0 -284
- package/mcp-server/README-MCP.md +0 -114
- package/mcp-server/README.md +0 -127
- package/mcp-server/TECHNICAL-DOCS.md +0 -269
- package/mcp-server/concorde-mcp-server.js +0 -859
- package/mcp-server/concorde-mcp-server.py +0 -801
- package/mcp-server/cursor-mcp-config-advanced.json +0 -68
- package/mcp-server/cursor-mcp-config-nodejs.json +0 -74
- package/mcp-server/cursor-mcp-config.json +0 -11
- package/mcp-server/install-mcp-nodejs.sh +0 -104
- package/mcp-server/install-mcp.sh +0 -62
- package/mcp-server/package-lock.json +0 -147
- package/mcp-server/package-mcp.json +0 -40
- package/mcp-server/package.json +0 -40
- package/mcp-server/test-mcp.js +0 -107
- package/mcp-server/test-mcp.py +0 -73
- package/src/core/components/ui/toast/message-subscriber.stories.ts +0 -43
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AsyncDirective } from "lit/async-directive.js";
|
|
2
2
|
import { directive } from "lit/directive.js";
|
|
3
3
|
import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
4
|
-
import { dp } from "@supersoniks/concorde/core/
|
|
4
|
+
import { dp } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
5
5
|
import { noChange } from "lit";
|
|
6
6
|
import { APIConfiguration } from "@supersoniks/concorde/core/utils/api";
|
|
7
7
|
import API from "@supersoniks/concorde/core/utils/api";
|
|
@@ -126,7 +126,7 @@ export default class WordingDirective extends AsyncDirective {
|
|
|
126
126
|
"wordingVersionProvider"
|
|
127
127
|
);
|
|
128
128
|
if (wordingVersionProvider) {
|
|
129
|
-
dp(wordingVersionProvider).onAssign(
|
|
129
|
+
dp<number>(wordingVersionProvider).onAssign(
|
|
130
130
|
WordingDirective.handleVersionProvider(node)
|
|
131
131
|
);
|
|
132
132
|
}
|
|
@@ -160,7 +160,7 @@ export default class WordingDirective extends AsyncDirective {
|
|
|
160
160
|
WordingDirective.publisher["wording_" + key].get() != null;
|
|
161
161
|
if (!hasWordingForKey && key !== "") {
|
|
162
162
|
apiCall.keysToTranslate.add(key);
|
|
163
|
-
WordingDirective.publisher["wording_" + key]
|
|
163
|
+
WordingDirective.publisher["wording_" + key].set(loadingString);
|
|
164
164
|
}
|
|
165
165
|
if (callIndex !== apiCall.callIndex) return;
|
|
166
166
|
const wordings = Array.from(apiCall.keysToTranslate);
|
|
@@ -179,7 +179,7 @@ export default class WordingDirective extends AsyncDirective {
|
|
|
179
179
|
apiCall.keysToTranslate.clear();
|
|
180
180
|
const result = (await api.get(calledURL)) as Record<string, string>;
|
|
181
181
|
for (const key in result) {
|
|
182
|
-
WordingDirective.publisher["wording_" + key]
|
|
182
|
+
WordingDirective.publisher["wording_" + key].set(result[key]);
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
}
|
|
@@ -74,9 +74,9 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
74
74
|
if (this.checksAll()) {
|
|
75
75
|
const checkAllPublisher = this.getCheckAllPublisher();
|
|
76
76
|
if (checkAllPublisher) {
|
|
77
|
-
if (this.checked === true) checkAllPublisher.checkMode
|
|
77
|
+
if (this.checked === true) checkAllPublisher.checkMode.set("allChecked");
|
|
78
78
|
else if (this.checked === null) {
|
|
79
|
-
checkAllPublisher.checkMode
|
|
79
|
+
checkAllPublisher.checkMode.set("noneChecked");
|
|
80
80
|
const formPublisher = this.getFormPublisher();
|
|
81
81
|
if (formPublisher) {
|
|
82
82
|
this.setFormPublisherValue([]);
|
|
@@ -200,15 +200,15 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
200
200
|
|
|
201
201
|
if (!this.checksAll() && checkAllPublisher && formPublisher && name) {
|
|
202
202
|
if (!(this.getFormPublisherValue() as any)?.length) {
|
|
203
|
-
checkAllPublisher.checkMode
|
|
203
|
+
checkAllPublisher.checkMode.set("noneChecked");
|
|
204
204
|
return;
|
|
205
205
|
} else if (this.checked === null) {
|
|
206
|
-
checkAllPublisher.checkMode
|
|
206
|
+
checkAllPublisher.checkMode.set("someUnchecked");
|
|
207
207
|
} else if (
|
|
208
208
|
checkAllPublisher.checkMode.get() == "noneChecked" ||
|
|
209
209
|
checkAllPublisher.checkMode.get() == null
|
|
210
210
|
) {
|
|
211
|
-
checkAllPublisher.checkMode
|
|
211
|
+
checkAllPublisher.checkMode.set("someUnchecked");
|
|
212
212
|
}
|
|
213
213
|
const currentValues = this.getFormPublisherValue();
|
|
214
214
|
const allValues = checkAllPublisher.values.get();
|
|
@@ -221,10 +221,10 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
if (checkedCount == allValues.length) {
|
|
224
|
-
checkAllPublisher.checkMode
|
|
224
|
+
checkAllPublisher.checkMode.set("allChecked");
|
|
225
225
|
}
|
|
226
226
|
if (checkedCount == 0) {
|
|
227
|
-
checkAllPublisher.checkMode
|
|
227
|
+
checkAllPublisher.checkMode.set("noneChecked");
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
if (allValues.indexOf(this.value) == -1 && this.unsetOnDisconnect()) {
|
|
@@ -261,7 +261,7 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
261
261
|
const idx = values.indexOf(this.value);
|
|
262
262
|
if (idx != -1) {
|
|
263
263
|
values.splice(idx, 1);
|
|
264
|
-
checkAllPublisher.values
|
|
264
|
+
checkAllPublisher.values.set(values);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -284,16 +284,16 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
284
284
|
if (checkAllPublisher) {
|
|
285
285
|
checkAllPublisher.checkMode.onAssign(this.onChecksAllRequest);
|
|
286
286
|
if (this.checksAll()) {
|
|
287
|
-
checkAllPublisher.hasCheckAll
|
|
287
|
+
checkAllPublisher.hasCheckAll.set(true);
|
|
288
288
|
}
|
|
289
289
|
if (!checkAllPublisher.values.get()) {
|
|
290
|
-
checkAllPublisher.values
|
|
290
|
+
checkAllPublisher.values.set([]);
|
|
291
291
|
}
|
|
292
292
|
if (!this.checksAll()) {
|
|
293
|
-
checkAllPublisher.values
|
|
293
|
+
checkAllPublisher.values.set([
|
|
294
294
|
...checkAllPublisher.values.get(),
|
|
295
295
|
this.value,
|
|
296
|
-
];
|
|
296
|
+
]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
|
|
@@ -67,7 +67,7 @@ const Form = <T extends Constructor<SubscriberInterface>>(superClass: T) => {
|
|
|
67
67
|
|
|
68
68
|
onValueAssign?: (v: string) => void;
|
|
69
69
|
onFormValueAssign?: (v: string) => void;
|
|
70
|
-
onFormDataInValidate?:
|
|
70
|
+
onFormDataInValidate?: VoidFunction;
|
|
71
71
|
constructor(...args: MixinArgsType[]) {
|
|
72
72
|
super();
|
|
73
73
|
args;
|