@flux-ui/components 3.0.0-next.71 → 3.0.0-next.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +54 -45
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2369,7 +2369,7 @@ function useTooltipInjection_default() {
|
|
|
2369
2369
|
return inject(FluxTooltipInjectionKey, { calculate: () => void 0 });
|
|
2370
2370
|
}
|
|
2371
2371
|
//#endregion
|
|
2372
|
-
//#region ../../node_modules/.bun/@basmilius+utils@3.
|
|
2372
|
+
//#region ../../node_modules/.bun/@basmilius+utils@3.37.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
|
|
2373
2373
|
function t$1(e, t) {
|
|
2374
2374
|
return Math.round(e / t) * t;
|
|
2375
2375
|
}
|
|
@@ -6585,7 +6585,7 @@ useMode(definition$2);
|
|
|
6585
6585
|
useMode(definition$1);
|
|
6586
6586
|
useMode(definition);
|
|
6587
6587
|
//#endregion
|
|
6588
|
-
//#region ../../node_modules/.bun/@basmilius+http-client@3.
|
|
6588
|
+
//#region ../../node_modules/.bun/@basmilius+http-client@3.37.0+f97c77f67c914c00/node_modules/@basmilius/http-client/dist/index.mjs
|
|
6589
6589
|
function adapter_default(Parent) {
|
|
6590
6590
|
return class extends Parent {
|
|
6591
6591
|
constructor(...args) {
|
|
@@ -6593,6 +6593,11 @@ function adapter_default(Parent) {
|
|
|
6593
6593
|
}
|
|
6594
6594
|
};
|
|
6595
6595
|
}
|
|
6596
|
+
function bound_default() {
|
|
6597
|
+
return (target, method) => {
|
|
6598
|
+
target[method] = target[method].bind(target);
|
|
6599
|
+
};
|
|
6600
|
+
}
|
|
6596
6601
|
/**
|
|
6597
6602
|
* Checks if the two given values are equal. When both values are a
|
|
6598
6603
|
* dto, the check is done by firstly converthing them to JSON.
|
|
@@ -6616,7 +6621,7 @@ var TRIGGER = Symbol();
|
|
|
6616
6621
|
* Checks if the given object is a dto.
|
|
6617
6622
|
*/
|
|
6618
6623
|
function isDto_default(obj) {
|
|
6619
|
-
return
|
|
6624
|
+
return typeof obj === "object" && obj !== null && NAME in obj;
|
|
6620
6625
|
}
|
|
6621
6626
|
/**
|
|
6622
6627
|
* Asserts that the given object is a dto.
|
|
@@ -6671,6 +6676,9 @@ var markDtoClean = circularProtect_default(function(obj) {
|
|
|
6671
6676
|
if (!obj[CHILDREN] || obj[CHILDREN].length === 0) return;
|
|
6672
6677
|
obj[CHILDREN].filter(isDtoDirty_default).forEach(markDtoClean);
|
|
6673
6678
|
});
|
|
6679
|
+
function isProxiedArray_default(value) {
|
|
6680
|
+
return Array.isArray(value) && PARENT in value;
|
|
6681
|
+
}
|
|
6674
6682
|
/**
|
|
6675
6683
|
* Marks the given dto dirty.
|
|
6676
6684
|
*/
|
|
@@ -6697,7 +6705,7 @@ function relateDtoTo_default(dto, parent, key) {
|
|
|
6697
6705
|
*/
|
|
6698
6706
|
function relateValueTo_default(dto, key, value) {
|
|
6699
6707
|
if (isDto_default(value)) relateDtoTo_default(value, dto, key);
|
|
6700
|
-
else if (
|
|
6708
|
+
else if (isProxiedArray_default(value)) {
|
|
6701
6709
|
for (const item of value) {
|
|
6702
6710
|
if (!isDto_default(item)) continue;
|
|
6703
6711
|
relateDtoTo_default(item, dto, key);
|
|
@@ -6729,7 +6737,7 @@ function unrelateDtoFrom_default(dto, parent) {
|
|
|
6729
6737
|
*/
|
|
6730
6738
|
function unrelateValueFrom_default(dto, value) {
|
|
6731
6739
|
if (isDto_default(value)) unrelateDtoFrom_default(value, dto);
|
|
6732
|
-
else if (
|
|
6740
|
+
else if (isProxiedArray_default(value)) {
|
|
6733
6741
|
for (const item of value) if (isDto_default(item)) unrelateDtoFrom_default(item, dto);
|
|
6734
6742
|
value[PARENT] = void 0;
|
|
6735
6743
|
value[PARENT_KEY] = void 0;
|
|
@@ -6773,7 +6781,7 @@ var arrayProxy_default = {
|
|
|
6773
6781
|
}
|
|
6774
6782
|
};
|
|
6775
6783
|
/**
|
|
6776
|
-
* Checks if the
|
|
6784
|
+
* Checks if the proxy should ignore the given key.
|
|
6777
6785
|
*/
|
|
6778
6786
|
function ignored(target, key) {
|
|
6779
6787
|
return typeof key === "symbol" || typeof target[key] === "function" || key === "length";
|
|
@@ -6818,7 +6826,7 @@ var instanceProxy_default = {
|
|
|
6818
6826
|
const oldValue = descriptor.get?.call(target) ?? void 0;
|
|
6819
6827
|
if (areEqual_default(value, oldValue)) return true;
|
|
6820
6828
|
unrelateValueFrom_default(target, oldValue);
|
|
6821
|
-
if (Array.isArray(value) && !value
|
|
6829
|
+
if (Array.isArray(value) && !isProxiedArray_default(value)) value = new Proxy(value, arrayProxy_default);
|
|
6822
6830
|
descriptor.set.call(target, value);
|
|
6823
6831
|
relateValueTo_default(target, key, value);
|
|
6824
6832
|
markDtoDirty(target, key);
|
|
@@ -6942,7 +6950,7 @@ function dto_default(clazz) {
|
|
|
6942
6950
|
K$2(clazz.prototype, DESCRIPTORS, descriptors);
|
|
6943
6951
|
K$2(clazz.prototype, NAME, clazz.name);
|
|
6944
6952
|
K$2(clazz.prototype, PROPERTIES, properties);
|
|
6945
|
-
K$2(clazz, Symbol.hasInstance, (instance) => typeof instance === "object" && instance
|
|
6953
|
+
K$2(clazz, Symbol.hasInstance, (instance) => typeof instance === "object" && instance !== null && NAME in instance && instance[NAME] === clazz.name);
|
|
6946
6954
|
G$2(clazz, "clone", clone_default);
|
|
6947
6955
|
G$2(clazz, "fill", fill_default);
|
|
6948
6956
|
G$2(clazz, "toJSON", toJSON_default);
|
|
@@ -6963,6 +6971,12 @@ function __decorate(decorators, target, key, desc) {
|
|
|
6963
6971
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6964
6972
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6965
6973
|
}
|
|
6974
|
+
var X$2 = class {
|
|
6975
|
+
test() {
|
|
6976
|
+
return true;
|
|
6977
|
+
}
|
|
6978
|
+
};
|
|
6979
|
+
__decorate([bound_default()], X$2.prototype, "test", null);
|
|
6966
6980
|
var BlobResponse = class BlobResponse {
|
|
6967
6981
|
get blob() {
|
|
6968
6982
|
return this.#blob;
|
|
@@ -7075,7 +7089,7 @@ var HttpAdapter = _HttpAdapter = class HttpAdapter {
|
|
|
7075
7089
|
const defaultFilename = `download-${DateTime.now().toFormat("yyyy-MM-dd HH-mm-ss")}`;
|
|
7076
7090
|
if (!header.startsWith("attachment")) return defaultFilename;
|
|
7077
7091
|
const matches = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(header);
|
|
7078
|
-
if (
|
|
7092
|
+
if (!matches || matches.length < 2) return defaultFilename;
|
|
7079
7093
|
return matches[1].replaceAll("'", "").replaceAll("\"", "").replaceAll("/", "-").replaceAll(":", "-");
|
|
7080
7094
|
}
|
|
7081
7095
|
static parseRequestError(data, statusCode) {
|
|
@@ -7083,12 +7097,7 @@ var HttpAdapter = _HttpAdapter = class HttpAdapter {
|
|
|
7083
7097
|
}
|
|
7084
7098
|
static parseValidationError(data) {
|
|
7085
7099
|
let errors;
|
|
7086
|
-
if (data.errors)
|
|
7087
|
-
errors = {};
|
|
7088
|
-
Object.entries(data.errors).forEach(([key, value]) => {
|
|
7089
|
-
errors[key] = _HttpAdapter.parseValidationError(value);
|
|
7090
|
-
});
|
|
7091
|
-
}
|
|
7100
|
+
if (data.errors) errors = Object.fromEntries(Object.entries(data.errors).map(([key, value]) => [key, _HttpAdapter.parseValidationError(value)]));
|
|
7092
7101
|
return new ValidationError_default(data.code, data.error, data.error_description, errors, data.params);
|
|
7093
7102
|
}
|
|
7094
7103
|
};
|
|
@@ -7916,13 +7925,13 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
|
|
|
7916
7925
|
});
|
|
7917
7926
|
//#endregion
|
|
7918
7927
|
//#region src/css/component/Action.module.scss
|
|
7919
|
-
var { "
|
|
7928
|
+
var { "button": _0$15, "buttonIcon": _1$6, "buttonLabel": _2$5 } = Button_module_default$1;
|
|
7920
7929
|
var Action_module_default = {
|
|
7921
|
-
action: `action ${
|
|
7930
|
+
action: `action ${_0$15}`,
|
|
7922
7931
|
spinner: `spinner`,
|
|
7923
|
-
actionIcon: `action-icon ${
|
|
7932
|
+
actionIcon: `action-icon ${_1$6}`,
|
|
7924
7933
|
isDestructive: `is-destructive`,
|
|
7925
|
-
actionLabel: `action-label ${
|
|
7934
|
+
actionLabel: `action-label ${_2$5}`,
|
|
7926
7935
|
actionBar: `action-bar`,
|
|
7927
7936
|
separator: `separator`,
|
|
7928
7937
|
formInput: `form-input`,
|
|
@@ -9287,32 +9296,32 @@ function useTreeView(params) {
|
|
|
9287
9296
|
}
|
|
9288
9297
|
//#endregion
|
|
9289
9298
|
//#region src/css/component/Button.module.scss
|
|
9290
|
-
var { "
|
|
9299
|
+
var { "buttonIcon": _0$14, "button": _1$5, "buttonLabel": _2$4 } = Button_module_default$1;
|
|
9291
9300
|
var Button_module_default = {
|
|
9292
|
-
primaryButton: `primary-button ${
|
|
9301
|
+
primaryButton: `primary-button ${_1$5}`,
|
|
9293
9302
|
spinner: `spinner`,
|
|
9294
|
-
primaryButtonIcon: `primary-button-icon ${
|
|
9295
|
-
primaryButtonLabel: `primary-button-label ${
|
|
9296
|
-
secondaryButton: `secondary-button ${
|
|
9297
|
-
secondaryButtonIcon: `secondary-button-icon ${
|
|
9298
|
-
secondaryButtonLabel: `secondary-button-label ${
|
|
9299
|
-
destructiveButton: `destructive-button ${
|
|
9300
|
-
destructiveButtonIcon: `destructive-button-icon ${
|
|
9301
|
-
destructiveButtonLabel: `destructive-button-label ${
|
|
9302
|
-
baseLinkButton: `base-link-button ${
|
|
9303
|
-
primaryLinkButton: `primary-link-button base-link-button ${
|
|
9304
|
-
primaryLinkButtonIcon: `primary-link-button-icon ${
|
|
9305
|
-
primaryLinkButtonLabel: `primary-link-button-label ${
|
|
9306
|
-
secondaryLinkButton: `secondary-link-button base-link-button ${
|
|
9307
|
-
secondaryLinkButtonIcon: `secondary-link-button-icon ${
|
|
9308
|
-
secondaryLinkButtonLabel: `secondary-link-button-label ${
|
|
9309
|
-
linkButton: `link-button ${
|
|
9310
|
-
linkButtonIcon: `link-button-icon ${
|
|
9303
|
+
primaryButtonIcon: `primary-button-icon ${_0$14}`,
|
|
9304
|
+
primaryButtonLabel: `primary-button-label ${_2$4}`,
|
|
9305
|
+
secondaryButton: `secondary-button ${_1$5}`,
|
|
9306
|
+
secondaryButtonIcon: `secondary-button-icon ${_0$14}`,
|
|
9307
|
+
secondaryButtonLabel: `secondary-button-label ${_2$4}`,
|
|
9308
|
+
destructiveButton: `destructive-button ${_1$5}`,
|
|
9309
|
+
destructiveButtonIcon: `destructive-button-icon ${_0$14}`,
|
|
9310
|
+
destructiveButtonLabel: `destructive-button-label ${_2$4}`,
|
|
9311
|
+
baseLinkButton: `base-link-button ${_1$5}`,
|
|
9312
|
+
primaryLinkButton: `primary-link-button base-link-button ${_1$5}`,
|
|
9313
|
+
primaryLinkButtonIcon: `primary-link-button-icon ${_0$14}`,
|
|
9314
|
+
primaryLinkButtonLabel: `primary-link-button-label ${_2$4}`,
|
|
9315
|
+
secondaryLinkButton: `secondary-link-button base-link-button ${_1$5}`,
|
|
9316
|
+
secondaryLinkButtonIcon: `secondary-link-button-icon ${_0$14}`,
|
|
9317
|
+
secondaryLinkButtonLabel: `secondary-link-button-label ${_2$4}`,
|
|
9318
|
+
linkButton: `link-button ${_1$5}`,
|
|
9319
|
+
linkButtonIcon: `link-button-icon ${_0$14}`,
|
|
9311
9320
|
icon: `icon`,
|
|
9312
|
-
linkButtonLabel: `link-button-label ${
|
|
9313
|
-
publishButton: `publish-button primary-button ${
|
|
9314
|
-
publishButtonIcon: `publish-button-icon primary-button-icon ${
|
|
9315
|
-
publishButtonLabel: `publish-button-label primary-button-label ${
|
|
9321
|
+
linkButtonLabel: `link-button-label ${_2$4}`,
|
|
9322
|
+
publishButton: `publish-button primary-button ${_1$5}`,
|
|
9323
|
+
publishButtonIcon: `publish-button-icon primary-button-icon ${_0$14}`,
|
|
9324
|
+
publishButtonLabel: `publish-button-label primary-button-label ${_2$4}`,
|
|
9316
9325
|
publishButtonAnimation: `publish-button-animation`,
|
|
9317
9326
|
isDone: `is-done`,
|
|
9318
9327
|
publishButtonAnimationArrow: `publish-button-animation-arrow`,
|
|
@@ -15452,16 +15461,16 @@ var FluxFormSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
15452
15461
|
});
|
|
15453
15462
|
//#endregion
|
|
15454
15463
|
//#region src/css/component/Pagination.module.scss
|
|
15455
|
-
var { "
|
|
15464
|
+
var { "secondaryButtonLabel": _0$8, "secondaryButton": _1$2, "secondaryButtonIcon": _2$1 } = Button_module_default;
|
|
15456
15465
|
var Pagination_module_default = {
|
|
15457
15466
|
pagination: `pagination`,
|
|
15458
|
-
paginationButton: `pagination-button ${
|
|
15467
|
+
paginationButton: `pagination-button ${_1$2}`,
|
|
15459
15468
|
secondaryButton: `secondary-button`,
|
|
15460
15469
|
paginationButtonArrow: `pagination-button-arrow`,
|
|
15461
15470
|
paginationButtonCurrent: `pagination-button-current`,
|
|
15462
15471
|
paginationButtonSpacer: `pagination-button-spacer`,
|
|
15463
15472
|
paginationButtonIcon: `pagination-button-icon ${_2$1}`,
|
|
15464
|
-
paginationButtonLabel: `pagination-button-label ${
|
|
15473
|
+
paginationButtonLabel: `pagination-button-label ${_0$8}`,
|
|
15465
15474
|
paginationBar: `pagination-bar`,
|
|
15466
15475
|
paginationBarLimit: `pagination-bar-limit`,
|
|
15467
15476
|
paginationBarLimitDisplayingOf: `pagination-bar-limit-displaying-of`,
|