@dcodegroup-au/dsg-vue 1.0.7-next → 1.0.8-next

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.
@@ -29,6 +29,14 @@ export interface DsgTableProps {
29
29
  filterSearchEndpoint?: string;
30
30
  tableLayout?: "fixed" | "auto";
31
31
  autoSortFilters?: boolean;
32
+ /** Show the "Save as default" action on the built-in filter panel. Defaults to `false`. */
33
+ showSaveAsDefault?: boolean;
34
+ /** Label for the "Save as default" filter header action. */
35
+ saveAsDefaultLabel?: string;
36
+ /** Show the "Clear all" action on the built-in filter panel when filters are selected. Defaults to `true`. */
37
+ showClearAll?: boolean;
38
+ /** Label for the "Clear all" filter header action. */
39
+ clearAllLabel?: string;
32
40
  data?: {
33
41
  [key: string]: any;
34
42
  }[] | null;
@@ -423,6 +431,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
423
431
  "dsg-table:link-clicked": (ev: Event, actionId: string | number, rowData: Record<string, any>) => any;
424
432
  "dsg-table:term-changed": (term: string | null) => any;
425
433
  "dsg-table:filter-updated": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
434
+ "dsg-table:save-as-default": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
426
435
  "dsg-table:rows-selected": (rows: any) => any;
427
436
  "dsg-table:row-clicked": (ev: Event, rowIndex: number, rowData: Record<string, any>) => any;
428
437
  "dsg-table:row-hover": (ev: Event, rowIndex: number, rowData: Record<string, any>) => any;
@@ -438,6 +447,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
438
447
  "onDsg-table:link-clicked"?: ((ev: Event, actionId: string | number, rowData: Record<string, any>) => any) | undefined;
439
448
  "onDsg-table:term-changed"?: ((term: string | null) => any) | undefined;
440
449
  "onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
450
+ "onDsg-table:save-as-default"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
441
451
  "onDsg-table:rows-selected"?: ((rows: any) => any) | undefined;
442
452
  "onDsg-table:row-clicked"?: ((ev: Event, rowIndex: number, rowData: Record<string, any>) => any) | undefined;
443
453
  "onDsg-table:row-hover"?: ((ev: Event, rowIndex: number, rowData: Record<string, any>) => any) | undefined;
@@ -19,6 +19,22 @@ export interface DsgTableFilterProps {
19
19
  replaceState?: boolean;
20
20
  replaceStrategy?: "window" | "inertia";
21
21
  autoSort?: boolean;
22
+ /**
23
+ * Show the "Save as default" header action. Defaults to `false`.
24
+ */
25
+ showSaveAsDefault?: boolean;
26
+ /**
27
+ * Label for the "Save as default" header action.
28
+ */
29
+ saveAsDefaultLabel?: string;
30
+ /**
31
+ * Show the "Clear all" header action when filters are selected. Defaults to `true`.
32
+ */
33
+ showClearAll?: boolean;
34
+ /**
35
+ * Label for the "Clear all" header action.
36
+ */
37
+ clearAllLabel?: string;
22
38
  }
23
39
  export interface DsgTableSearchRefine {
24
40
  count?: number;
@@ -582,8 +598,10 @@ declare function __VLS_template(): {
582
598
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
583
599
  declare const __VLS_component: import('vue').DefineComponent<DsgTableFilterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
584
600
  "dsg-table:filter-updated": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
601
+ "dsg-table:save-as-default": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
585
602
  }, string, import('vue').PublicProps, Readonly<DsgTableFilterProps> & Readonly<{
586
603
  "onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
604
+ "onDsg-table:save-as-default"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
587
605
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
588
606
  dsgTableFilter: HTMLDivElement;
589
607
  floatingVueFilterDropdownEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
package/dist/dsg-vue.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("./DsgTablePerPage.vue_vue_type_style_index_0_lang-DncMp8KQ.cjs"),f=require("vue"),Ha=require("./DsgLabel.vue_vue_type_style_index_0_lang-BTfTmByq.cjs"),It=f.defineComponent({__name:"DsgMiscIcon",props:{theme:{default:"brand"},type:{default:"light-outline"},size:{default:"lg"},icon:{}},setup(t){return(e,r)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("./DsgTablePerPage.vue_vue_type_style_index_0_lang-DQk8doWV.cjs"),f=require("vue"),Ha=require("./DsgLabel.vue_vue_type_style_index_0_lang-BTfTmByq.cjs"),It=f.defineComponent({__name:"DsgMiscIcon",props:{theme:{default:"brand"},type:{default:"light-outline"},size:{default:"lg"},icon:{}},setup(t){return(e,r)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`
2
2
  dsg-misc-icon
3
3
  dsg-misc-icon--${t.theme}
4
4
  dsg-misc-icon--${t.type}