@anzusystems/common-admin 1.47.0-beta.dev-1788764220 → 1.47.0-beta.dev-1788935853

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/labs.d.ts CHANGED
@@ -75,7 +75,9 @@ declare const __VLS_base_3: DefineComponent<__VLS_PublicProps_2, {
75
75
  store: FilterStoreIdentifier | boolean;
76
76
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
77
77
 
78
- declare const __VLS_base_4: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
78
+ declare const __VLS_base_4: DefineComponent<__VLS_Props_9, {
79
+ onClear: () => void;
80
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
79
81
  change: () => any;
80
82
  }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
81
83
  onChange?: (() => any) | undefined;
@@ -105,9 +107,9 @@ declare const __VLS_base_5: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {},
105
107
  "onUpdate:loadingLocal"?: ((value: boolean) => any) | undefined;
106
108
  "onUpdate:fetchedItemsMinimal"?: ((value: Map<string | number, any>) => any) | undefined;
107
109
  }>, {
108
- loading: boolean;
109
110
  required: boolean;
110
111
  label: string;
112
+ loading: boolean;
111
113
  clearable: boolean;
112
114
  errorMessage: string;
113
115
  v: any;
@@ -865,6 +867,17 @@ declare interface BaseUser {
865
867
  };
866
868
  }
867
869
 
870
+ /**
871
+ * Hash for a filter link, with values equal to their default left out.
872
+ *
873
+ * Pair it with `router.push({ name, hash })`, which needs the leading `#` — without it vue-router
874
+ * glues the value onto the path instead. A hash still containing `%` (diacritics, `&`, `=`) does
875
+ * not survive that trip; check with `isRouterSafeHash` and fall back to assigning
876
+ * `window.location.hash` after navigating. Returns an empty string when nothing differs from
877
+ * the defaults.
878
+ */
879
+ export declare function buildFilterHash<F extends readonly MakeFilterOption<string>[]>(filterConfig: FilterConfig<F>, filters: Partial<Record<keyof FilterData<F> & string, AllowedFilterValues>>, sortBy?: DatatableSortBy): string;
880
+
868
881
  /**
869
882
  * `_unresolved` is terminal: the fetch settled without resolving the item, either because
870
883
  * it failed or because the server did not return it.
@@ -1176,6 +1189,9 @@ declare type IntegerId = number;
1176
1189
  */
1177
1190
  declare type IntegerIdNullable = number | null;
1178
1191
 
1192
+ /** Whether `router.push({ hash })` would leave the hash intact — see `buildFilterHash`. */
1193
+ export declare const isRouterSafeHash: (hash: string) => boolean;
1194
+
1179
1195
  declare const JOB_RESOURCE_USER_DATA_DELETE = "jobUserDataDelete";
1180
1196
 
1181
1197
  declare interface JobBase<T extends JobBaseResource = JobBaseResource> extends AnzuUserAndTimeTrackingAware {