@hashicorp/design-system-components 5.1.0-rc-20251125211530 → 5.1.0-rc-20251202110410
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/declarations/components/hds/filter-bar/{filter-group/checkbox.d.ts → checkbox.d.ts} +4 -5
- package/declarations/components/hds/filter-bar/{filter-group/date.d.ts → date.d.ts} +6 -6
- package/declarations/components/hds/filter-bar/{filter-group/index.d.ts → filter-group.d.ts} +12 -12
- package/declarations/components/hds/filter-bar/{dropdown.d.ts → filters-dropdown.d.ts} +4 -4
- package/declarations/components/hds/filter-bar/{filter-group/generic.d.ts → generic.d.ts} +3 -3
- package/declarations/components/hds/filter-bar/index.d.ts +3 -3
- package/declarations/components/hds/filter-bar/{filter-group/radio.d.ts → radio.d.ts} +4 -5
- package/declarations/components/hds/filter-bar/{filter-group/numerical.d.ts → range.d.ts} +9 -9
- package/declarations/components/hds/filter-bar/types.d.ts +12 -13
- package/declarations/components.d.ts +7 -7
- package/declarations/template-registry.d.ts +19 -19
- package/dist/_app_/components/hds/filter-bar/{dropdown.js → checkbox.js} +1 -1
- package/dist/_app_/components/hds/filter-bar/{filter-group/date.js → date.js} +1 -1
- package/dist/_app_/components/hds/filter-bar/filter-group.js +1 -1
- package/dist/_app_/components/hds/filter-bar/filters-dropdown.js +1 -0
- package/dist/_app_/components/hds/filter-bar/{filter-group/generic.js → generic.js} +1 -1
- package/dist/_app_/components/hds/filter-bar/{filter-group/radio.js → radio.js} +1 -1
- package/dist/_app_/components/hds/filter-bar/range.js +1 -0
- package/dist/components/hds/advanced-table/index.js +1 -1
- package/dist/components/hds/filter-bar/{filter-group/checkbox.js → checkbox.js} +6 -7
- package/dist/components/hds/filter-bar/checkbox.js.map +1 -0
- package/dist/components/hds/filter-bar/{filter-group/date.js → date.js} +5 -5
- package/dist/components/hds/filter-bar/date.js.map +1 -0
- package/dist/components/hds/filter-bar/{filter-group/index.js → filter-group.js} +11 -12
- package/dist/components/hds/filter-bar/filter-group.js.map +1 -0
- package/dist/components/hds/filter-bar/{dropdown.js → filters-dropdown.js} +7 -7
- package/dist/components/hds/filter-bar/filters-dropdown.js.map +1 -0
- package/dist/components/hds/filter-bar/{filter-group/generic.js → generic.js} +4 -4
- package/dist/components/hds/filter-bar/generic.js.map +1 -0
- package/dist/components/hds/filter-bar/index.js +18 -21
- package/dist/components/hds/filter-bar/index.js.map +1 -1
- package/dist/components/hds/filter-bar/{filter-group/radio.js → radio.js} +6 -7
- package/dist/components/hds/filter-bar/radio.js.map +1 -0
- package/dist/components/hds/filter-bar/range.js +163 -0
- package/dist/components/hds/filter-bar/range.js.map +1 -0
- package/dist/components/hds/filter-bar/types.js +10 -10
- package/dist/components/hds/filter-bar/types.js.map +1 -1
- package/dist/components.js +8 -8
- package/dist/styles/@hashicorp/design-system-components.css +77 -62
- package/dist/styles/components/filter-bar.scss +90 -74
- package/package.json +7 -7
- package/translations/hds/components/filter-bar/en-us.yaml +1 -1
- package/dist/_app_/components/hds/filter-bar/filter-group/checkbox.js +0 -1
- package/dist/_app_/components/hds/filter-bar/filter-group/numerical.js +0 -1
- package/dist/components/hds/filter-bar/dropdown.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/checkbox.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/date.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/generic.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/index.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/numerical.js +0 -163
- package/dist/components/hds/filter-bar/filter-group/numerical.js.map +0 -1
- package/dist/components/hds/filter-bar/filter-group/radio.js.map +0 -1
- /package/translations/hds/components/filter-bar/{filter-group/numerical → range}/en-us.yaml +0 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { action } from '@ember/object';
|
|
3
|
+
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
import { guidFor } from '@ember/object/internals';
|
|
5
|
+
import { service } from '@ember/service';
|
|
6
|
+
import { HdsFilterBarRangeFilterSelectorValues } from './types.js';
|
|
7
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
8
|
+
import { g, i, n } from 'decorator-transforms/runtime';
|
|
9
|
+
import { setComponentTemplate } from '@ember/component';
|
|
10
|
+
|
|
11
|
+
var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<div class=\"hds-filter-bar__filters-dropdown__filter-range\">\n <Hds::Layout::Flex class=\"hds-filter-bar__filters-dropdown__fields\" @direction=\"column\" @gap=\"16\">\n <Hds::Form::Select::Field\n @id={{this._selectorInputId}}\n class=\"hds-filter-bar__filters-dropdown__field\"\n {{on \"change\" this.onSelectorChange}}\n as |F|\n >\n <F.Label>\n {{hds-t \"hds.components.filter-bar.range.label\" default=\"Number is\"}}\n </F.Label>\n <F.Options>\n <option value=\"\">{{hds-t\n \"hds.components.filter-bar.range.selector-input.default-value\"\n default=\"Pick a selector\"\n }}</option>\n {{#each this._selectorValues as |selectorValue|}}\n <option value={{selectorValue}} selected={{eq selectorValue this._selector}}>{{this._selectorText\n selectorValue\n }}</option>\n {{/each}}\n </F.Options>\n </Hds::Form::Select::Field>\n {{#if (eq this._selector \"between\")}}\n <Hds::Layout::Flex @gap=\"8\">\n <Hds::Form::TextInput::Base\n @id={{this._betweenValueStartInputId}}\n @type=\"text\"\n @value={{this.stringBetweenValueStart}}\n placeholder={{hds-t \"hds.components.filter-bar.between-value-inputs.start-placeholder\" default=\"Start\"}}\n class=\"hds-filter-bar__filters-dropdown__field\"\n {{on \"change\" this.onBetweenValueStartChange}}\n />\n <Hds::Form::TextInput::Base\n @id={{this._betweenValueEndInputId}}\n @type=\"text\"\n @value={{this.stringBetweenValueEnd}}\n placeholder={{hds-t \"hds.components.filter-bar.between-value-inputs.end-placeholder\" default=\"End\"}}\n class=\"hds-filter-bar__filters-dropdown__field\"\n {{on \"change\" this.onBetweenValueEndChange}}\n />\n </Hds::Layout::Flex>\n {{else}}\n <Hds::Form::TextInput::Base\n @id={{this._valueInputId}}\n @type=\"text\"\n @value={{this.stringValue}}\n placeholder={{hds-t \"hds.components.filter-bar.range.value-input.placeholder\" default=\"Enter a value\"}}\n class=\"hds-filter-bar__filters-dropdown__field\"\n {{on \"change\" this.onValueChange}}\n />\n {{/if}}\n </Hds::Layout::Flex>\n <div class=\"hds-filter-bar__filters-dropdown__clear\">\n <Hds::Button\n @text={{hds-t \"hds.components.filter-bar.range.clear\" default=\"Clear filter\"}}\n @color=\"tertiary\"\n @icon=\"rotate-ccw\"\n @isInline={{true}}\n {{on \"click\" this.onClear}}\n />\n </div>\n</div>");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Copyright (c) HashiCorp, Inc.
|
|
15
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const RANGE_SELECTORS = Object.values(HdsFilterBarRangeFilterSelectorValues);
|
|
19
|
+
const RANGE_SELECTORS_TEXT = {
|
|
20
|
+
[HdsFilterBarRangeFilterSelectorValues.lessThan]: '<',
|
|
21
|
+
[HdsFilterBarRangeFilterSelectorValues.lessThanOrEqualTo]: '≤',
|
|
22
|
+
[HdsFilterBarRangeFilterSelectorValues.equalTo]: '=',
|
|
23
|
+
[HdsFilterBarRangeFilterSelectorValues.greaterThanOrEqualTo]: '≥',
|
|
24
|
+
[HdsFilterBarRangeFilterSelectorValues.greaterThan]: '>',
|
|
25
|
+
[HdsFilterBarRangeFilterSelectorValues.between]: 'between'
|
|
26
|
+
};
|
|
27
|
+
const RANGE_SELECTORS_INPUT_TEXT = {
|
|
28
|
+
[HdsFilterBarRangeFilterSelectorValues.lessThan]: 'Less than (<)',
|
|
29
|
+
[HdsFilterBarRangeFilterSelectorValues.lessThanOrEqualTo]: 'Less than or equal to (≤)',
|
|
30
|
+
[HdsFilterBarRangeFilterSelectorValues.equalTo]: 'Equal to (=)',
|
|
31
|
+
[HdsFilterBarRangeFilterSelectorValues.greaterThanOrEqualTo]: 'Greater than or equal to (≥)',
|
|
32
|
+
[HdsFilterBarRangeFilterSelectorValues.greaterThan]: 'Greater than (>)',
|
|
33
|
+
[HdsFilterBarRangeFilterSelectorValues.between]: 'Between'
|
|
34
|
+
};
|
|
35
|
+
class HdsFilterBarRange extends Component {
|
|
36
|
+
static {
|
|
37
|
+
g(this.prototype, "hdsIntl", [service]);
|
|
38
|
+
}
|
|
39
|
+
#hdsIntl = (i(this, "hdsIntl"), void 0);
|
|
40
|
+
static {
|
|
41
|
+
g(this.prototype, "_selector", [tracked]);
|
|
42
|
+
}
|
|
43
|
+
#_selector = (i(this, "_selector"), void 0);
|
|
44
|
+
static {
|
|
45
|
+
g(this.prototype, "_value", [tracked]);
|
|
46
|
+
}
|
|
47
|
+
#_value = (i(this, "_value"), void 0);
|
|
48
|
+
static {
|
|
49
|
+
g(this.prototype, "_betweenValueStart", [tracked]);
|
|
50
|
+
}
|
|
51
|
+
#_betweenValueStart = (i(this, "_betweenValueStart"), void 0);
|
|
52
|
+
static {
|
|
53
|
+
g(this.prototype, "_betweenValueEnd", [tracked]);
|
|
54
|
+
}
|
|
55
|
+
#_betweenValueEnd = (i(this, "_betweenValueEnd"), void 0);
|
|
56
|
+
_selectorValues = RANGE_SELECTORS;
|
|
57
|
+
_selectorInputId = 'selector-input-' + guidFor(this);
|
|
58
|
+
_valueInputId = 'value-input-' + guidFor(this);
|
|
59
|
+
_betweenValueStartInputId = 'between-value-start-input-' + guidFor(this);
|
|
60
|
+
_betweenValueEndInputId = 'between-value-end-input-' + guidFor(this);
|
|
61
|
+
constructor(owner, args) {
|
|
62
|
+
super(owner, args);
|
|
63
|
+
const {
|
|
64
|
+
keyFilter
|
|
65
|
+
} = this.args;
|
|
66
|
+
if (keyFilter && keyFilter.type === 'range') {
|
|
67
|
+
const data = keyFilter.data;
|
|
68
|
+
this._selector = data?.selector;
|
|
69
|
+
if (data.selector === 'between') {
|
|
70
|
+
if (data.value && typeof data.value === 'object') {
|
|
71
|
+
this._betweenValueStart = Number(data.value.start);
|
|
72
|
+
this._betweenValueEnd = Number(data.value.end);
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
this._value = Number(data.value);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
get stringValue() {
|
|
80
|
+
return this._value !== undefined ? this._value.toString() : undefined;
|
|
81
|
+
}
|
|
82
|
+
get stringBetweenValueStart() {
|
|
83
|
+
return this._betweenValueStart !== undefined ? this._betweenValueStart.toString() : undefined;
|
|
84
|
+
}
|
|
85
|
+
get stringBetweenValueEnd() {
|
|
86
|
+
return this._betweenValueEnd !== undefined ? this._betweenValueEnd.toString() : undefined;
|
|
87
|
+
}
|
|
88
|
+
onSelectorChange(event) {
|
|
89
|
+
const select = event.target;
|
|
90
|
+
this._selector = select.value;
|
|
91
|
+
if (this._selector === 'between') {
|
|
92
|
+
this._value = undefined;
|
|
93
|
+
} else {
|
|
94
|
+
this._betweenValueStart = undefined;
|
|
95
|
+
this._betweenValueEnd = undefined;
|
|
96
|
+
}
|
|
97
|
+
this._onChange();
|
|
98
|
+
}
|
|
99
|
+
static {
|
|
100
|
+
n(this.prototype, "onSelectorChange", [action]);
|
|
101
|
+
}
|
|
102
|
+
onValueChange(event) {
|
|
103
|
+
const input = event.target;
|
|
104
|
+
this._value = parseFloat(input.value);
|
|
105
|
+
this._onChange();
|
|
106
|
+
}
|
|
107
|
+
static {
|
|
108
|
+
n(this.prototype, "onValueChange", [action]);
|
|
109
|
+
}
|
|
110
|
+
onBetweenValueStartChange(event) {
|
|
111
|
+
const input = event.target;
|
|
112
|
+
this._betweenValueStart = parseFloat(input.value);
|
|
113
|
+
this._onChange();
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
n(this.prototype, "onBetweenValueStartChange", [action]);
|
|
117
|
+
}
|
|
118
|
+
onBetweenValueEndChange(event) {
|
|
119
|
+
const input = event.target;
|
|
120
|
+
this._betweenValueEnd = parseFloat(input.value);
|
|
121
|
+
this._onChange();
|
|
122
|
+
}
|
|
123
|
+
static {
|
|
124
|
+
n(this.prototype, "onBetweenValueEndChange", [action]);
|
|
125
|
+
}
|
|
126
|
+
onClear() {
|
|
127
|
+
this._resetInputValues();
|
|
128
|
+
this._onChange();
|
|
129
|
+
}
|
|
130
|
+
static {
|
|
131
|
+
n(this.prototype, "onClear", [action]);
|
|
132
|
+
}
|
|
133
|
+
_onChange() {
|
|
134
|
+
const {
|
|
135
|
+
onChange
|
|
136
|
+
} = this.args;
|
|
137
|
+
if (onChange && typeof onChange === 'function') {
|
|
138
|
+
if (this._selector === 'between' && this._betweenValueStart !== undefined && this._betweenValueEnd !== undefined) {
|
|
139
|
+
onChange(this._selector, {
|
|
140
|
+
start: this._betweenValueStart,
|
|
141
|
+
end: this._betweenValueEnd
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
onChange(this._selector, this._value);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
_selectorText = selector => {
|
|
149
|
+
return this.hdsIntl.t(`hds.components.filter-bar.range.selector-input.${selector}`, {
|
|
150
|
+
default: RANGE_SELECTORS_INPUT_TEXT[selector]
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
_resetInputValues = () => {
|
|
154
|
+
this._selector = undefined;
|
|
155
|
+
this._value = undefined;
|
|
156
|
+
this._betweenValueStart = undefined;
|
|
157
|
+
this._betweenValueEnd = undefined;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
setComponentTemplate(TEMPLATE, HdsFilterBarRange);
|
|
161
|
+
|
|
162
|
+
export { RANGE_SELECTORS, RANGE_SELECTORS_INPUT_TEXT, RANGE_SELECTORS_TEXT, HdsFilterBarRange as default };
|
|
163
|
+
//# sourceMappingURL=range.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.js","sources":["../../../../src/components/hds/filter-bar/range.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\nimport type Owner from '@ember/owner';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\n\nimport type HdsIntlService from '../../../services/hds-intl';\nimport type {\n HdsFilterBarFilter,\n HdsFilterBarRangeFilterSelector,\n HdsFilterBarRangeFilterValue,\n} from './types.ts';\nimport { HdsFilterBarRangeFilterSelectorValues } from './types.ts';\n\nexport const RANGE_SELECTORS: HdsFilterBarRangeFilterSelector[] = Object.values(\n HdsFilterBarRangeFilterSelectorValues\n);\n\nexport const RANGE_SELECTORS_TEXT: Record<\n HdsFilterBarRangeFilterSelector,\n string\n> = {\n [HdsFilterBarRangeFilterSelectorValues.lessThan]: '<',\n [HdsFilterBarRangeFilterSelectorValues.lessThanOrEqualTo]: '≤',\n [HdsFilterBarRangeFilterSelectorValues.equalTo]: '=',\n [HdsFilterBarRangeFilterSelectorValues.greaterThanOrEqualTo]: '≥',\n [HdsFilterBarRangeFilterSelectorValues.greaterThan]: '>',\n [HdsFilterBarRangeFilterSelectorValues.between]: 'between',\n};\n\nexport const RANGE_SELECTORS_INPUT_TEXT: Record<\n HdsFilterBarRangeFilterSelector,\n string\n> = {\n [HdsFilterBarRangeFilterSelectorValues.lessThan]: 'Less than (<)',\n [HdsFilterBarRangeFilterSelectorValues.lessThanOrEqualTo]:\n 'Less than or equal to (≤)',\n [HdsFilterBarRangeFilterSelectorValues.equalTo]: 'Equal to (=)',\n [HdsFilterBarRangeFilterSelectorValues.greaterThanOrEqualTo]:\n 'Greater than or equal to (≥)',\n [HdsFilterBarRangeFilterSelectorValues.greaterThan]: 'Greater than (>)',\n [HdsFilterBarRangeFilterSelectorValues.between]: 'Between',\n};\n\nexport interface HdsFilterBarRangeSignature {\n Args: {\n keyFilter: HdsFilterBarFilter | undefined;\n onChange?: (\n selector?: HdsFilterBarRangeFilterSelector,\n value?: HdsFilterBarRangeFilterValue\n ) => void;\n };\n Blocks: {\n default: [];\n };\n Element: HTMLDivElement;\n}\n\nexport default class HdsFilterBarRange extends Component<HdsFilterBarRangeSignature> {\n @service hdsIntl!: HdsIntlService;\n\n @tracked private _selector: HdsFilterBarRangeFilterSelector | undefined;\n @tracked private _value: number | undefined;\n @tracked private _betweenValueStart: number | undefined;\n @tracked private _betweenValueEnd: number | undefined;\n\n private _selectorValues = RANGE_SELECTORS;\n private _selectorInputId = 'selector-input-' + guidFor(this);\n private _valueInputId = 'value-input-' + guidFor(this);\n private _betweenValueStartInputId =\n 'between-value-start-input-' + guidFor(this);\n private _betweenValueEndInputId = 'between-value-end-input-' + guidFor(this);\n\n constructor(owner: Owner, args: HdsFilterBarRangeSignature['Args']) {\n super(owner, args);\n\n const { keyFilter } = this.args;\n if (keyFilter && keyFilter.type === 'range') {\n const data = keyFilter.data;\n this._selector = data?.selector;\n if (data.selector === 'between') {\n if (data.value && typeof data.value === 'object') {\n this._betweenValueStart = Number(data.value.start);\n this._betweenValueEnd = Number(data.value.end);\n }\n } else {\n this._value = Number(data.value);\n }\n }\n }\n\n get stringValue(): string | undefined {\n return this._value !== undefined ? this._value.toString() : undefined;\n }\n\n get stringBetweenValueStart(): string | undefined {\n return this._betweenValueStart !== undefined\n ? this._betweenValueStart.toString()\n : undefined;\n }\n\n get stringBetweenValueEnd(): string | undefined {\n return this._betweenValueEnd !== undefined\n ? this._betweenValueEnd.toString()\n : undefined;\n }\n\n @action\n onSelectorChange(event: Event): void {\n const select = event.target as HTMLSelectElement;\n this._selector = select.value as HdsFilterBarRangeFilterSelector;\n if (this._selector === 'between') {\n this._value = undefined;\n } else {\n this._betweenValueStart = undefined;\n this._betweenValueEnd = undefined;\n }\n this._onChange();\n }\n\n @action\n onValueChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this._value = parseFloat(input.value);\n this._onChange();\n }\n\n @action\n onBetweenValueStartChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this._betweenValueStart = parseFloat(input.value);\n this._onChange();\n }\n\n @action\n onBetweenValueEndChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n this._betweenValueEnd = parseFloat(input.value);\n this._onChange();\n }\n\n @action\n onClear(): void {\n this._resetInputValues();\n this._onChange();\n }\n\n private _onChange(): void {\n const { onChange } = this.args;\n if (onChange && typeof onChange === 'function') {\n if (\n this._selector === 'between' &&\n this._betweenValueStart !== undefined &&\n this._betweenValueEnd !== undefined\n ) {\n onChange(this._selector, {\n start: this._betweenValueStart,\n end: this._betweenValueEnd,\n });\n } else {\n onChange(this._selector, this._value);\n }\n }\n }\n\n private _selectorText = (\n selector: HdsFilterBarRangeFilterSelector\n ): string => {\n return this.hdsIntl.t(\n `hds.components.filter-bar.range.selector-input.${selector}`,\n {\n default: RANGE_SELECTORS_INPUT_TEXT[selector],\n }\n );\n };\n\n private _resetInputValues = (): void => {\n this._selector = undefined;\n this._value = undefined;\n this._betweenValueStart = undefined;\n this._betweenValueEnd = undefined;\n };\n}\n"],"names":["RANGE_SELECTORS","Object","values","HdsFilterBarRangeFilterSelectorValues","RANGE_SELECTORS_TEXT","lessThan","lessThanOrEqualTo","equalTo","greaterThanOrEqualTo","greaterThan","between","RANGE_SELECTORS_INPUT_TEXT","HdsFilterBarRange","Component","g","prototype","service","i","void 0","tracked","_selectorValues","_selectorInputId","guidFor","_valueInputId","_betweenValueStartInputId","_betweenValueEndInputId","constructor","owner","args","keyFilter","type","data","_selector","selector","value","_betweenValueStart","Number","start","_betweenValueEnd","end","_value","stringValue","undefined","toString","stringBetweenValueStart","stringBetweenValueEnd","onSelectorChange","event","select","target","_onChange","n","action","onValueChange","input","parseFloat","onBetweenValueStartChange","onBetweenValueEndChange","onClear","_resetInputValues","onChange","_selectorText","hdsIntl","t","default","setComponentTemplate","TEMPLATE"],"mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;;AAiBO,MAAMA,eAAkD,GAA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AAU,EAAE;AAC9C,MAAA,IACE,IAAI,CAAC5B,SAAS,KAAK,SAAS,IAC5B,IAAI,CAACG,kBAAkB,KAAKO,SAAS,IACrC,IAAI,CAACJ,gBAAgB,KAAKI,SAAS,EACnC;AACAkB,QAAAA,QAAQ,CAAC,IAAI,CAAC5B,SAAS,EAAE;UACvBK,KAAK,EAAE,IAAI,CAACF,kBAAkB;UAC9BI,GAAG,EAAE,IAAI,CAACD;AACZ,SAAC,CAAC;AACJ,MAAA,CAAC,MAAM;QACLsB,QAAQ,CAAC,IAAI,CAAC5B,SAAS,EAAE,IAAI,CAACQ,MAAM,CAAC;AACvC,MAAA;AACF,IAAA;AACF,EAAA;EAEQqB,aAAa,GACnB5B,QAAyC,IAC9B;IACX,OAAO,IAAI,CAAC6B,OAAO,CAACC,CAAC,CACnB,CAAA,+CAAA,EAAkD9B,QAAQ,CAAA,CAAE,EAC5D;MACE+B,OAAO,EAAErD,0BAA0B,CAACsB,QAAQ;AAC9C,KACF,CAAC;EACH,CAAC;EAEO0B,iBAAiB,GAAGA,MAAY;IACtC,IAAI,CAAC3B,SAAS,GAAGU,SAAS;IAC1B,IAAI,CAACF,MAAM,GAAGE,SAAS;IACvB,IAAI,CAACP,kBAAkB,GAAGO,SAAS;IACnC,IAAI,CAACJ,gBAAgB,GAAGI,SAAS;EACnC,CAAC;AACH;AAACuB,oBAAA,CAAAC,QAAA,EA5HoBtD,iBAAiB,CAAA;;;;"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
let HdsFilterBarFilterTypeValues = /*#__PURE__*/function (HdsFilterBarFilterTypeValues) {
|
|
7
7
|
HdsFilterBarFilterTypeValues["multiSelect"] = "multi-select";
|
|
8
8
|
HdsFilterBarFilterTypeValues["singleSelect"] = "single-select";
|
|
9
|
-
HdsFilterBarFilterTypeValues["
|
|
9
|
+
HdsFilterBarFilterTypeValues["range"] = "range";
|
|
10
10
|
HdsFilterBarFilterTypeValues["date"] = "date";
|
|
11
11
|
HdsFilterBarFilterTypeValues["time"] = "time";
|
|
12
12
|
HdsFilterBarFilterTypeValues["datetime"] = "datetime";
|
|
@@ -14,14 +14,14 @@ let HdsFilterBarFilterTypeValues = /*#__PURE__*/function (HdsFilterBarFilterType
|
|
|
14
14
|
HdsFilterBarFilterTypeValues["search"] = "search";
|
|
15
15
|
return HdsFilterBarFilterTypeValues;
|
|
16
16
|
}({});
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
let HdsFilterBarRangeFilterSelectorValues = /*#__PURE__*/function (HdsFilterBarRangeFilterSelectorValues) {
|
|
18
|
+
HdsFilterBarRangeFilterSelectorValues["lessThan"] = "less-than";
|
|
19
|
+
HdsFilterBarRangeFilterSelectorValues["lessThanOrEqualTo"] = "less-than-or-equal-to";
|
|
20
|
+
HdsFilterBarRangeFilterSelectorValues["equalTo"] = "equal-to";
|
|
21
|
+
HdsFilterBarRangeFilterSelectorValues["greaterThanOrEqualTo"] = "greater-than-or-equal-to";
|
|
22
|
+
HdsFilterBarRangeFilterSelectorValues["greaterThan"] = "greater-than";
|
|
23
|
+
HdsFilterBarRangeFilterSelectorValues["between"] = "between";
|
|
24
|
+
return HdsFilterBarRangeFilterSelectorValues;
|
|
25
25
|
}({});
|
|
26
26
|
let HdsFilterBarDateFilterSelectorValues = /*#__PURE__*/function (HdsFilterBarDateFilterSelectorValues) {
|
|
27
27
|
HdsFilterBarDateFilterSelectorValues["before"] = "before";
|
|
@@ -31,5 +31,5 @@ let HdsFilterBarDateFilterSelectorValues = /*#__PURE__*/function (HdsFilterBarDa
|
|
|
31
31
|
return HdsFilterBarDateFilterSelectorValues;
|
|
32
32
|
}({});
|
|
33
33
|
|
|
34
|
-
export { HdsFilterBarDateFilterSelectorValues, HdsFilterBarFilterTypeValues,
|
|
34
|
+
export { HdsFilterBarDateFilterSelectorValues, HdsFilterBarFilterTypeValues, HdsFilterBarRangeFilterSelectorValues };
|
|
35
35
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/components/hds/filter-bar/types.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nexport enum HdsFilterBarFilterTypeValues {\n multiSelect = 'multi-select',\n singleSelect = 'single-select',\n
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/components/hds/filter-bar/types.ts"],"sourcesContent":["/**\n * Copyright (c) HashiCorp, Inc.\n * SPDX-License-Identifier: MPL-2.0\n */\n\nexport enum HdsFilterBarFilterTypeValues {\n multiSelect = 'multi-select',\n singleSelect = 'single-select',\n range = 'range',\n date = 'date',\n time = 'time',\n datetime = 'datetime',\n generic = 'generic',\n search = 'search',\n}\n\nexport type HdsFilterBarFilterType = `${HdsFilterBarFilterTypeValues}`;\n\nexport interface HdsFilterBarGenericFilterData {\n value: unknown;\n}\n\nexport interface HdsFilterBarRangeFilterData {\n selector: HdsFilterBarRangeFilterSelector;\n value: HdsFilterBarRangeFilterValue;\n}\n\nexport interface HdsFilterBarDateFilterData {\n selector: HdsFilterBarDateFilterSelector;\n value: HdsFilterBarDateFilterValue;\n}\n\nexport type HdsFilterBarData =\n | HdsFilterBarGenericFilterData[]\n | HdsFilterBarGenericFilterData\n | HdsFilterBarRangeFilterData\n | HdsFilterBarDateFilterData;\n\nexport interface HdsFilterBarGenericFilter {\n type: 'generic';\n text?: string;\n dismissTagText?: string;\n data: HdsFilterBarGenericFilterData | HdsFilterBarGenericFilterData[];\n}\nexport interface HdsFilterBarSingleSelectFilter {\n type: 'single-select';\n text?: string;\n data: HdsFilterBarGenericFilterData;\n}\n\nexport interface HdsFilterBarMultiSelectFilter {\n type: 'multi-select';\n text?: string;\n data: HdsFilterBarGenericFilterData[];\n}\n\nexport interface HdsFilterBarRangeFilter {\n type: 'range';\n text?: string;\n data: HdsFilterBarRangeFilterData;\n}\n\nexport interface HdsFilterBarDateFilter {\n type: 'date' | 'time' | 'datetime';\n text?: string;\n data: HdsFilterBarDateFilterData;\n}\n\nexport interface HdsFilterBarSearchFilter {\n type: 'search';\n text?: string;\n data: HdsFilterBarGenericFilterData;\n}\n\nexport type HdsFilterBarFilter =\n | HdsFilterBarSingleSelectFilter\n | HdsFilterBarMultiSelectFilter\n | HdsFilterBarRangeFilter\n | HdsFilterBarDateFilter\n | HdsFilterBarSearchFilter\n | HdsFilterBarGenericFilter;\n\nexport interface HdsFilterBarFilters {\n [name: string]: HdsFilterBarFilter;\n}\n\nexport enum HdsFilterBarRangeFilterSelectorValues {\n lessThan = 'less-than',\n lessThanOrEqualTo = 'less-than-or-equal-to',\n equalTo = 'equal-to',\n greaterThanOrEqualTo = 'greater-than-or-equal-to',\n greaterThan = 'greater-than',\n between = 'between',\n}\n\nexport type HdsFilterBarRangeFilterSelector =\n `${HdsFilterBarRangeFilterSelectorValues}`;\n\nexport enum HdsFilterBarDateFilterSelectorValues {\n before = 'before',\n exactly = 'exactly',\n after = 'after',\n between = 'between',\n}\n\nexport type HdsFilterBarDateFilterSelector =\n `${HdsFilterBarDateFilterSelectorValues}`;\n\nexport type HdsFilterBarRangeFilterValue =\n | number\n | { start?: number; end?: number };\n\nexport type HdsFilterBarDateFilterValue =\n | string\n | { start?: string; end?: string };\n"],"names":["HdsFilterBarFilterTypeValues","HdsFilterBarRangeFilterSelectorValues","HdsFilterBarDateFilterSelectorValues"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA,IAAYA,4BAA4B,0BAA5BA,4BAA4B,EAAA;EAA5BA,4BAA4B,CAAA,aAAA,CAAA,GAAA,cAAA;EAA5BA,4BAA4B,CAAA,cAAA,CAAA,GAAA,eAAA;EAA5BA,4BAA4B,CAAA,OAAA,CAAA,GAAA,OAAA;EAA5BA,4BAA4B,CAAA,MAAA,CAAA,GAAA,MAAA;EAA5BA,4BAA4B,CAAA,MAAA,CAAA,GAAA,MAAA;EAA5BA,4BAA4B,CAAA,UAAA,CAAA,GAAA,UAAA;EAA5BA,4BAA4B,CAAA,SAAA,CAAA,GAAA,SAAA;EAA5BA,4BAA4B,CAAA,QAAA,CAAA,GAAA,QAAA;AAAA,EAAA,OAA5BA,4BAA4B;AAAA,CAAA,CAAA,EAAA;AAiFxC,IAAYC,qCAAqC,0BAArCA,qCAAqC,EAAA;EAArCA,qCAAqC,CAAA,UAAA,CAAA,GAAA,WAAA;EAArCA,qCAAqC,CAAA,mBAAA,CAAA,GAAA,uBAAA;EAArCA,qCAAqC,CAAA,SAAA,CAAA,GAAA,UAAA;EAArCA,qCAAqC,CAAA,sBAAA,CAAA,GAAA,0BAAA;EAArCA,qCAAqC,CAAA,aAAA,CAAA,GAAA,cAAA;EAArCA,qCAAqC,CAAA,SAAA,CAAA,GAAA,SAAA;AAAA,EAAA,OAArCA,qCAAqC;AAAA,CAAA,CAAA,EAAA;AAYjD,IAAYC,oCAAoC,0BAApCA,oCAAoC,EAAA;EAApCA,oCAAoC,CAAA,QAAA,CAAA,GAAA,QAAA;EAApCA,oCAAoC,CAAA,SAAA,CAAA,GAAA,SAAA;EAApCA,oCAAoC,CAAA,OAAA,CAAA,GAAA,OAAA;EAApCA,oCAAoC,CAAA,SAAA,CAAA,GAAA,SAAA;AAAA,EAAA,OAApCA,oCAAoC;AAAA,CAAA,CAAA,EAAA;;;;"}
|
package/dist/components.js
CHANGED
|
@@ -84,17 +84,17 @@ export { HdsDropdownListItemInteractiveColorValues } from './components/hds/drop
|
|
|
84
84
|
export { HdsDropdownToggleButtonColorValues, HdsDropdownToggleButtonSizeValues, HdsDropdownToggleIconAllowedIconValues, HdsDropdownToggleIconSizeValues } from './components/hds/dropdown/toggle/types.js';
|
|
85
85
|
export { HdsDropdownPositionToPlacementValues, HdsDropdownPositionValues } from './components/hds/dropdown/types.js';
|
|
86
86
|
export { default as HdsFilterBar } from './components/hds/filter-bar/index.js';
|
|
87
|
-
export { default as
|
|
88
|
-
export { default as
|
|
89
|
-
export { default as
|
|
90
|
-
export { default as
|
|
91
|
-
export { default as
|
|
92
|
-
export { default as
|
|
93
|
-
export { default as
|
|
87
|
+
export { default as HdsFilterBarCheckbox } from './components/hds/filter-bar/checkbox.js';
|
|
88
|
+
export { default as HdsFilterBarDate } from './components/hds/filter-bar/date.js';
|
|
89
|
+
export { default as HdsFilterBarFiltersDropdown } from './components/hds/filter-bar/filters-dropdown.js';
|
|
90
|
+
export { default as HdsFilterBarFilterGroup } from './components/hds/filter-bar/filter-group.js';
|
|
91
|
+
export { default as HdsFilterBarGeneric } from './components/hds/filter-bar/generic.js';
|
|
92
|
+
export { default as HdsFilterBarRadio } from './components/hds/filter-bar/radio.js';
|
|
93
|
+
export { default as HdsFilterBarRange } from './components/hds/filter-bar/range.js';
|
|
94
94
|
export { default as HdsFilterBarTabs } from './components/hds/filter-bar/tabs/index.js';
|
|
95
95
|
export { default as HdsFilterBarTabsPanel } from './components/hds/filter-bar/tabs/panel.js';
|
|
96
96
|
export { default as HdsFilterBarTabsTab } from './components/hds/filter-bar/tabs/tab.js';
|
|
97
|
-
export { HdsFilterBarDateFilterSelectorValues, HdsFilterBarFilterTypeValues,
|
|
97
|
+
export { HdsFilterBarDateFilterSelectorValues, HdsFilterBarFilterTypeValues, HdsFilterBarRangeFilterSelectorValues } from './components/hds/filter-bar/types.js';
|
|
98
98
|
export { default as HdsFlyout } from './components/hds/flyout/index.js';
|
|
99
99
|
export { HdsFlyoutSizesValues } from './components/hds/flyout/types.js';
|
|
100
100
|
export { default as HdsForm } from './components/hds/form/index.js';
|
|
@@ -5203,8 +5203,7 @@ button.hds-button[href]::after {
|
|
|
5203
5203
|
border: 1px solid var(--token-color-border-primary);
|
|
5204
5204
|
border-radius: var(--token-border-radius-medium);
|
|
5205
5205
|
}
|
|
5206
|
-
|
|
5207
|
-
.hds-filter-bar__filters {
|
|
5206
|
+
.hds-filter-bar .hds-filter-bar__filters {
|
|
5208
5207
|
display: flex;
|
|
5209
5208
|
flex-wrap: wrap;
|
|
5210
5209
|
gap: 8px 12px;
|
|
@@ -5212,6 +5211,9 @@ button.hds-button[href]::after {
|
|
|
5212
5211
|
padding-top: 8px;
|
|
5213
5212
|
border-top: 1px solid var(--token-color-border-primary);
|
|
5214
5213
|
}
|
|
5214
|
+
.hds-filter-bar .hds-filter-bar__filters .hds-dropdown__list .hds-form-text-input {
|
|
5215
|
+
width: auto;
|
|
5216
|
+
}
|
|
5215
5217
|
|
|
5216
5218
|
.hds-filter-bar__actions__right {
|
|
5217
5219
|
margin-left: auto;
|
|
@@ -5221,11 +5223,72 @@ button.hds-button[href]::after {
|
|
|
5221
5223
|
--token-form-control-padding: 3px;
|
|
5222
5224
|
}
|
|
5223
5225
|
|
|
5224
|
-
.hds-filter-
|
|
5225
|
-
|
|
5226
|
+
.hds-filter-bar__filters-dropdown__filter-group .hds-form-field--layout-flag {
|
|
5227
|
+
padding: 8px 12px;
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__list,
|
|
5231
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown-list-item {
|
|
5226
5232
|
padding: 0;
|
|
5227
5233
|
}
|
|
5228
5234
|
|
|
5235
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__footer .hds-layout-flex {
|
|
5236
|
+
margin: 8px 0;
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__footer .hds-button-set {
|
|
5240
|
+
gap: 8px;
|
|
5241
|
+
}
|
|
5242
|
+
|
|
5243
|
+
.hds-filter-bar__filters-dropdown__filter-group__search {
|
|
5244
|
+
padding: 0 16px 16px 16px;
|
|
5245
|
+
border-bottom: 1px solid var(--token-color-border-primary);
|
|
5246
|
+
}
|
|
5247
|
+
|
|
5248
|
+
.hds-filter-bar__filters-dropdown__filter-group__list {
|
|
5249
|
+
display: flex;
|
|
5250
|
+
flex-direction: column;
|
|
5251
|
+
gap: 4px;
|
|
5252
|
+
margin: 0;
|
|
5253
|
+
padding: 0;
|
|
5254
|
+
overflow-y: auto;
|
|
5255
|
+
list-style: none;
|
|
5256
|
+
overscroll-behavior: contain;
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
.hds-filter-bar__filters-dropdown__filters-count {
|
|
5260
|
+
margin-left: 8px;
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
.hds-filter-bar__filters-dropdown__filter-option {
|
|
5264
|
+
display: block;
|
|
5265
|
+
padding: 8px 16px;
|
|
5266
|
+
}
|
|
5267
|
+
.hds-filter-bar__filters-dropdown__filter-option--hidden {
|
|
5268
|
+
display: none;
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
.hds-filter-bar__filters-dropdown__filter-range,
|
|
5272
|
+
.hds-filter-bar__filters-dropdown__filter-date {
|
|
5273
|
+
display: flex;
|
|
5274
|
+
flex-direction: column;
|
|
5275
|
+
gap: 8px;
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
.hds-filter-bar__filters-dropdown__fields {
|
|
5279
|
+
padding: 0 16px;
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field,
|
|
5283
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field[type=date],
|
|
5284
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field[type=time] {
|
|
5285
|
+
width: 100%;
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
.hds-filter-bar__filters-dropdown__clear {
|
|
5289
|
+
padding: 4px;
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5229
5292
|
.hds-filter-bar__tabs {
|
|
5230
5293
|
display: flex;
|
|
5231
5294
|
}
|
|
@@ -5242,6 +5305,16 @@ button.hds-button[href]::after {
|
|
|
5242
5305
|
border-top-left-radius: var(--token-border-radius-medium);
|
|
5243
5306
|
}
|
|
5244
5307
|
|
|
5308
|
+
.hds-filter-bar__tabs__panel:not([hidden]) {
|
|
5309
|
+
display: flex;
|
|
5310
|
+
flex-direction: column;
|
|
5311
|
+
gap: 8px;
|
|
5312
|
+
width: 50%;
|
|
5313
|
+
padding: 16px 0;
|
|
5314
|
+
background-color: var(--token-color-surface-primary);
|
|
5315
|
+
border-top-right-radius: var(--token-border-radius-medium);
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5245
5318
|
.hds-filter-bar__tabs__tab__button {
|
|
5246
5319
|
display: flex;
|
|
5247
5320
|
gap: 16px;
|
|
@@ -5277,64 +5350,6 @@ button.hds-button[href]::after {
|
|
|
5277
5350
|
background-color: var(--token-color-palette-neutral-300);
|
|
5278
5351
|
}
|
|
5279
5352
|
|
|
5280
|
-
.hds-filter-bar__tabs__panel:not([hidden]) {
|
|
5281
|
-
display: flex;
|
|
5282
|
-
flex-direction: column;
|
|
5283
|
-
gap: 8px;
|
|
5284
|
-
width: 50%;
|
|
5285
|
-
padding: 16px 0;
|
|
5286
|
-
background-color: var(--token-color-surface-primary);
|
|
5287
|
-
border-top-right-radius: var(--token-border-radius-medium);
|
|
5288
|
-
}
|
|
5289
|
-
|
|
5290
|
-
.hds-filter-bar__filter-group .hds-form-field--layout-flag {
|
|
5291
|
-
padding: 8px 12px;
|
|
5292
|
-
}
|
|
5293
|
-
|
|
5294
|
-
.hds-filter-bar__filter-group__search {
|
|
5295
|
-
padding: 0 16px 16px 16px;
|
|
5296
|
-
border-bottom: 1px solid var(--token-color-border-primary);
|
|
5297
|
-
}
|
|
5298
|
-
|
|
5299
|
-
.hds-filter-bar__filter-group__list {
|
|
5300
|
-
display: flex;
|
|
5301
|
-
flex-direction: column;
|
|
5302
|
-
gap: 4px;
|
|
5303
|
-
margin: 0;
|
|
5304
|
-
padding: 0;
|
|
5305
|
-
overflow-y: auto;
|
|
5306
|
-
list-style: none;
|
|
5307
|
-
overscroll-behavior: contain;
|
|
5308
|
-
}
|
|
5309
|
-
|
|
5310
|
-
.hds-filter-bar__filter-group__fields {
|
|
5311
|
-
padding: 0 16px;
|
|
5312
|
-
}
|
|
5313
|
-
.hds-filter-bar__filter-group__fields .hds-filter-bar__filter-group__field,
|
|
5314
|
-
.hds-filter-bar__filter-group__fields .hds-filter-bar__filter-group__field[type=date],
|
|
5315
|
-
.hds-filter-bar__filter-group__fields .hds-filter-bar__filter-group__field[type=time] {
|
|
5316
|
-
width: 100%;
|
|
5317
|
-
}
|
|
5318
|
-
|
|
5319
|
-
.hds-filter-bar__filter-group__numerical,
|
|
5320
|
-
.hds-filter-bar__filter-group__date {
|
|
5321
|
-
display: flex;
|
|
5322
|
-
flex-direction: column;
|
|
5323
|
-
gap: 8px;
|
|
5324
|
-
}
|
|
5325
|
-
|
|
5326
|
-
.hds-filter-bar__filter-group__selection-option {
|
|
5327
|
-
display: block;
|
|
5328
|
-
padding: 8px 16px;
|
|
5329
|
-
}
|
|
5330
|
-
.hds-filter-bar__filter-group__selection-option--hidden {
|
|
5331
|
-
display: none;
|
|
5332
|
-
}
|
|
5333
|
-
|
|
5334
|
-
.hds-filter-bar__filter-group__clear {
|
|
5335
|
-
padding: 4px;
|
|
5336
|
-
}
|
|
5337
|
-
|
|
5338
5353
|
/**
|
|
5339
5354
|
* Copyright (c) HashiCorp, Inc.
|
|
5340
5355
|
* SPDX-License-Identifier: MPL-2.0
|
|
@@ -14,15 +14,19 @@
|
|
|
14
14
|
background-color: var(--token-color-surface-faint);
|
|
15
15
|
border: 1px solid var(--token-color-border-primary);
|
|
16
16
|
border-radius: var(--token-border-radius-medium);
|
|
17
|
-
}
|
|
18
17
|
|
|
19
|
-
.hds-filter-bar__filters {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
.hds-filter-bar__filters {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
gap: 8px 12px;
|
|
22
|
+
align-items: end;
|
|
23
|
+
padding-top: 8px;
|
|
24
|
+
border-top: 1px solid var(--token-color-border-primary);
|
|
25
|
+
|
|
26
|
+
.hds-dropdown__list .hds-form-text-input {
|
|
27
|
+
width: auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.hds-filter-bar__actions__right {
|
|
@@ -33,14 +37,78 @@
|
|
|
33
37
|
--token-form-control-padding: 3px;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
//
|
|
40
|
+
// FILTERS DROPDOWN
|
|
41
|
+
//
|
|
42
|
+
|
|
43
|
+
.hds-filter-bar__filters-dropdown__filter-group .hds-form-field--layout-flag {
|
|
44
|
+
padding: 8px 12px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__list,
|
|
48
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown-list-item {
|
|
49
|
+
padding: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__footer .hds-layout-flex {
|
|
53
|
+
margin: 8px 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.hds-filter-bar__filters-dropdown .hds-dropdown__footer .hds-button-set {
|
|
57
|
+
gap: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.hds-filter-bar__filters-dropdown__filter-group__search {
|
|
61
|
+
padding: 0 16px 16px 16px;
|
|
62
|
+
border-bottom: 1px solid var(--token-color-border-primary);
|
|
63
|
+
}
|
|
37
64
|
|
|
38
|
-
.hds-filter-
|
|
39
|
-
|
|
65
|
+
.hds-filter-bar__filters-dropdown__filter-group__list {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: 4px;
|
|
69
|
+
margin: 0;
|
|
40
70
|
padding: 0;
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
list-style: none;
|
|
73
|
+
overscroll-behavior: contain;
|
|
41
74
|
}
|
|
42
75
|
|
|
43
|
-
|
|
76
|
+
.hds-filter-bar__filters-dropdown__filters-count {
|
|
77
|
+
margin-left: 8px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.hds-filter-bar__filters-dropdown__filter-option {
|
|
81
|
+
display: block;
|
|
82
|
+
padding: 8px 16px;
|
|
83
|
+
|
|
84
|
+
&--hidden {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.hds-filter-bar__filters-dropdown__filter-range,
|
|
90
|
+
.hds-filter-bar__filters-dropdown__filter-date {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.hds-filter-bar__filters-dropdown__fields {
|
|
97
|
+
padding: 0 16px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field,
|
|
101
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field[type="date"],
|
|
102
|
+
.hds-filter-bar__filters-dropdown__fields .hds-filter-bar__filters-dropdown__field[type="time"] {
|
|
103
|
+
width: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.hds-filter-bar__filters-dropdown__clear {
|
|
107
|
+
padding: 4px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// TABS
|
|
111
|
+
//
|
|
44
112
|
|
|
45
113
|
.hds-filter-bar__tabs {
|
|
46
114
|
display: flex;
|
|
@@ -58,6 +126,16 @@
|
|
|
58
126
|
border-top-left-radius: var(--token-border-radius-medium);
|
|
59
127
|
}
|
|
60
128
|
|
|
129
|
+
.hds-filter-bar__tabs__panel:not([hidden]) {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
width: 50%;
|
|
134
|
+
padding: 16px 0;
|
|
135
|
+
background-color: var(--token-color-surface-primary);
|
|
136
|
+
border-top-right-radius: var(--token-border-radius-medium);
|
|
137
|
+
}
|
|
138
|
+
|
|
61
139
|
.hds-filter-bar__tabs__tab__button {
|
|
62
140
|
display: flex;
|
|
63
141
|
gap: 16px;
|
|
@@ -100,65 +178,3 @@
|
|
|
100
178
|
background-color: var(--token-color-palette-neutral-300);
|
|
101
179
|
}
|
|
102
180
|
}
|
|
103
|
-
|
|
104
|
-
.hds-filter-bar__tabs__panel:not([hidden]) {
|
|
105
|
-
display: flex;
|
|
106
|
-
flex-direction: column;
|
|
107
|
-
gap: 8px;
|
|
108
|
-
width: 50%;
|
|
109
|
-
padding: 16px 0;
|
|
110
|
-
background-color: var(--token-color-surface-primary);
|
|
111
|
-
border-top-right-radius: var(--token-border-radius-medium);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// FILTER BAR > FILTER GROUP
|
|
115
|
-
|
|
116
|
-
.hds-filter-bar__filter-group .hds-form-field--layout-flag {
|
|
117
|
-
padding: 8px 12px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.hds-filter-bar__filter-group__search {
|
|
121
|
-
padding: 0 16px 16px 16px;
|
|
122
|
-
border-bottom: 1px solid var(--token-color-border-primary);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.hds-filter-bar__filter-group__list {
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
gap: 4px;
|
|
129
|
-
margin: 0;
|
|
130
|
-
padding: 0;
|
|
131
|
-
overflow-y: auto;
|
|
132
|
-
list-style: none;
|
|
133
|
-
overscroll-behavior: contain;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.hds-filter-bar__filter-group__fields {
|
|
137
|
-
padding: 0 16px;
|
|
138
|
-
|
|
139
|
-
.hds-filter-bar__filter-group__field,
|
|
140
|
-
.hds-filter-bar__filter-group__field[type="date"],
|
|
141
|
-
.hds-filter-bar__filter-group__field[type="time"] {
|
|
142
|
-
width: 100%;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.hds-filter-bar__filter-group__numerical,
|
|
147
|
-
.hds-filter-bar__filter-group__date {
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
gap: 8px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.hds-filter-bar__filter-group__selection-option {
|
|
154
|
-
display: block;
|
|
155
|
-
padding: 8px 16px;
|
|
156
|
-
|
|
157
|
-
&--hidden {
|
|
158
|
-
display: none;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.hds-filter-bar__filter-group__clear {
|
|
163
|
-
padding: 4px;
|
|
164
|
-
}
|